Use during connect the flags set with set_client_option()

This commit is contained in:
Andrey Hristov committed 2013-01-09 18:27:06 +01:00
1 parent d4650c5d69
commit 12e759c2ea
1 file changed
+2
+2
View File
@@ -691,6 +691,8 @@ MYSQLND_METHOD(mysqlnd_conn, connect)(MYSQLND * conn,
mysql_flags |= CLIENT_LOCAL_FILES | CLIENT_PS_MULTI_RESULTS;
mysql_flags |= MYSQLND_CAPABILITIES;
mysql_flags |= conn->options.flags; /* use the flags from set_client_option() */
if (db) {
mysql_flags |= CLIENT_CONNECT_WITH_DB;
}