summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-06-30 16:38:05 +0200
committerSergei Golubchik <serg@mariadb.org>2016-06-30 16:38:05 +0200
commit932646b1ff6a8f5815a961340a9e1ee4702f5b44 (patch)
tree5bc42ace8ae1f7e4d00baffd468bdb7564e851f1 /tests
parent0bb30f3603b519780eaf3fe0527b1c6af285229a (diff)
parent33492ec8d4e2077cf8e07d0628a959d8729bd1f9 (diff)
downloadmariadb-git-932646b1ff6a8f5815a961340a9e1ee4702f5b44.tar.gz
Merge branch '10.1' into 10.2
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index 7af1249f596..806924e8e0e 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -2142,7 +2142,7 @@ static void test_ps_conj_select()
"(2, 'hh', 'hh'), (1, 'ii', 'ii'), (2, 'ii', 'ii')");
myquery(rc);
- strmov(query, "select id1, value1 from t1 where id1= ? or "
+ strmov(query, "SELECT id1, value1 from t1 where id1= ? or "
"CONVERT(value1 USING utf8)= ?");
stmt= mysql_simple_prepare(mysql, query);
check_stmt(stmt);
@@ -2310,7 +2310,7 @@ static void test_ps_query_cache()
return;
}
- rc= mysql_query(mysql, "SET SQL_MODE=''");
+ rc= mysql_set_character_set(mysql, "utf8");
myquery(rc);
/* prepare the table */
@@ -2362,6 +2362,8 @@ static void test_ps_query_cache()
}
rc= mysql_query(lmysql, "SET SQL_MODE=''");
myquery(rc);
+ rc= mysql_set_character_set(lmysql, "utf8");
+ myquery(rc);
if (!opt_silent)
fprintf(stdout, "OK");
@@ -16711,7 +16713,7 @@ static void test_bug30472()
/* Switch client character set. */
- DIE_IF(mysql_set_character_set(&con, "utf8"));
+ DIE_IF(mysql_set_character_set(&con, "latin2"));
/* Retrieve character set information. */
@@ -16727,10 +16729,10 @@ static void test_bug30472()
2) new character set is different from the original one.
*/
- DIE_UNLESS(strcmp(character_set_name_2, "utf8") == 0);
- DIE_UNLESS(strcmp(character_set_client_2, "utf8") == 0);
- DIE_UNLESS(strcmp(character_set_results_2, "utf8") == 0);
- DIE_UNLESS(strcmp(collation_connnection_2, "utf8_general_ci") == 0);
+ DIE_UNLESS(strcmp(character_set_name_2, "latin2") == 0);
+ DIE_UNLESS(strcmp(character_set_client_2, "latin2") == 0);
+ DIE_UNLESS(strcmp(character_set_results_2, "latin2") == 0);
+ DIE_UNLESS(strcmp(collation_connnection_2, "latin2_general_ci") == 0);
DIE_UNLESS(strcmp(character_set_name_1, character_set_name_2) != 0);
DIE_UNLESS(strcmp(character_set_client_1, character_set_client_2) != 0);