summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-05-04 15:23:26 +0200
committerSergei Golubchik <serg@mariadb.org>2016-05-04 15:23:26 +0200
commit87e3e67f434628768b5125fbab7e8862fa60da1a (patch)
treedf19b8bcac9988d83270ed1da05f765bfc4e8624 /tests
parent80da57cc4f0c717ee3e01ac5abccc859b88a2fbf (diff)
parentcee9ab9d85a8d75290b0d60bc7af26c8cf179a1d (diff)
downloadmariadb-git-87e3e67f434628768b5125fbab7e8862fa60da1a.tar.gz
Merge branch '10.0' into 10.1
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 bde146b2f21..62bf1a57d13 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");
@@ -16709,7 +16711,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. */
@@ -16725,10 +16727,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);