- LICENSE: correct author
- FIX: correct LOAD DATA LOCAL INFILE result information.
- FIX: reset SERVER_MORE_RESULTS_EXISTS when error packet is received.
- FIX: close the socket when the connection is disconnected.
- FIX: allow multiple results by default.
-
Mysql.new
no longer connect. useMysql.connect
orMysql#connect
. -
Mysql.init
is removed. useMysql.new
instead. -
Mysql.new
,Mysql.conncet
andMysql#connect
takes URI object or URI string or Hash object. example: Mysql.connect('mysql://user:password@hostname:port/dbname?charset=ascii') Mysql.connect('mysql://user:password@%2Ftmp%2Fmysql.sock/dbname?charset=ascii') # for UNIX socket Mysql.connect('hostname', 'user', 'password', 'dbname') Mysql.connect(host: 'hostname', username: 'user', password: 'password', database: 'dbname') -
Mysql.options
is removed. useMysql#param = value
instead. For example: m = Mysql.init m.options(Mysql::OPT_LOCAL_INFILE, true) m.connect(host, user, passwd) change to m = Mysql.new m.local_infile = true m.connect(host, user, passwd) or m = Mysql.connect(host, user, passwd, local_infile: true) -
Mysql::Time
is removed. Instead,Time
object is returned for the DATE, DATETIME, TIMESTAMP data, andInteger
object is returned for the TIME data. If DATE, DATETIME, TIMESTAMP are invalid values for Time, nil is returned. -
meaningless methods are removed:
bind_result
client_info
client_version
get_proto_info
get_server_info
get_server_version
proto_info
query_with_result
-
alias method are removed:
get_host_info
: usehost_info
real_connect
: useconnect
real_query
: usequery
-
methods corresponding to deprecated APIs in MySQL are removed:
list_dbs
: useSHOW DATABASES
list_fields
: useSHOW COLUMNS
list_processes
: useSHOW PROCESSLIST
list_tables
: useSHOW TABLES