@@ -18440,9 +18440,10 @@ static void test_bug58036()
18440
18440
/* Part1: try to connect with ucs2 client character set */
18441
18441
conn= mysql_client_init(NULL);
18442
18442
mysql_options(conn, MYSQL_SET_CHARSET_NAME, "ucs2");
18443
+
18443
18444
if (mysql_real_connect(conn, opt_host, opt_user,
18444
18445
opt_password, opt_db ? opt_db : "test",
18445
- opt_port, opt_unix_socket, 0 ))
18446
+ opt_port, opt_unix_socket, CLIENT_REMEMBER_OPTIONS ))
18446
18447
{
18447
18448
if (!opt_silent)
18448
18449
printf("mysql_real_connect() succeeded (failure expected)\n");
@@ -18468,7 +18469,7 @@ static void test_bug58036()
18468
18469
mysql_options(conn, MYSQL_SET_CHARSET_NAME, "latin1");
18469
18470
if (!mysql_real_connect(conn, opt_host, opt_user,
18470
18471
opt_password, opt_db ? opt_db : "test",
18471
- opt_port, opt_unix_socket, 0 ))
18472
+ opt_port, opt_unix_socket, CLIENT_REMEMBER_OPTIONS ))
18472
18473
{
18473
18474
if (!opt_silent)
18474
18475
printf("mysql_real_connect() failed: %s (%d)\n",
@@ -18490,7 +18491,6 @@ static void test_bug58036()
18490
18491
printf("Got mysql_change_user() error (expected): %s (%d)\n",
18491
18492
mysql_error(conn), mysql_errno(conn));
18492
18493
mysql_close(conn);
18493
-
18494
18494
DBUG_VOID_RETURN;
18495
18495
}
18496
18496
@@ -19344,8 +19344,9 @@ static void test_big_packet()
19344
19344
19345
19345
if (!(mysql_real_connect(mysql_local, opt_host, opt_user,
19346
19346
opt_password, current_db, opt_port,
19347
- opt_unix_socket, 0 )))
19347
+ opt_unix_socket, CLIENT_REMEMBER_OPTIONS )))
19348
19348
{
19349
+ mysql_close(mysql_local);
19349
19350
fprintf(stderr, "\n connection failed(%s)", mysql_error(mysql_local));
19350
19351
exit(1);
19351
19352
}
0 commit comments