You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
initial implementation for MDEV-12471
This commit is contained in:
@@ -207,7 +207,7 @@ restart:
|
||||
|
||||
if (last_errno== 65535 &&
|
||||
((mariadb_connection(mysql) && (mysql->server_capabilities & CLIENT_PROGRESS)) ||
|
||||
(!(mysql->extension->mariadb_server_capabilities & MARIADB_CLIENT_PROGRESS >> 32))))
|
||||
(!(mysql->extension->mariadb_server_capabilities & MARIADB_CLIENT_PROGRESS << 32))))
|
||||
{
|
||||
if (cli_report_progress(mysql, (uchar *)pos, (uint) (len-1)))
|
||||
{
|
||||
@@ -1483,7 +1483,8 @@ MYSQL *mthd_my_real_connect(MYSQL *mysql, const char *host, const char *user,
|
||||
net->compress= 1;
|
||||
|
||||
/* last part: select default db */
|
||||
if (db && !mysql->db)
|
||||
if (!(mysql->server_capabilities & CLIENT_CONNECT_WITH_DB) &&
|
||||
(db && !mysql->db))
|
||||
{
|
||||
if (mysql_select_db(mysql, db))
|
||||
{
|
||||
|
Reference in New Issue
Block a user