diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-10-09 09:11:30 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-10-09 09:11:30 +0300 |
commit | 43ee6915fa4b8e3088e89b7d4325946190ce04f5 (patch) | |
tree | e580d22b0ff6faed1720f88ddeedf86a0867fa41 /tests | |
parent | 7d4beb7286d53be07ff552de9d37ea90c2762651 (diff) | |
parent | 1ebe841fb85725c2a6aaecb3bca41ec098a5193d (diff) | |
download | mariadb-git-43ee6915fa4b8e3088e89b7d4325946190ce04f5.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 0abeab8de1c..cbf3dad0965 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -16425,6 +16425,7 @@ static void test_change_user() const char *db= "mysqltest_user_test_database"; int rc; MYSQL* conn; + MYSQL_RES* res; DBUG_ENTER("test_change_user"); myheader("test_change_user"); @@ -16561,6 +16562,20 @@ static void test_change_user() rc= mysql_change_user(conn, user_pw, pw, ""); myquery(rc); + /* MDEV-14581 : Check that there are no warnings after change user.*/ + rc = mysql_query(conn,"SIGNAL SQLSTATE '01000'"); + myquery(rc); + + rc = mysql_change_user(conn, user_pw, pw, ""); + myquery(rc); + + rc = mysql_query(conn, "SHOW WARNINGS"); + myquery(rc); + res = mysql_store_result(conn); + rc = my_process_result_set(res); + DIE_UNLESS(rc == 0); + mysql_free_result(res); + rc= mysql_change_user(conn, user_no_pw, pw, db); DIE_UNLESS(rc); if (! opt_silent) |