diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-27 12:39:27 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-28 11:12:03 +0400 |
commit | 552d33095a25f6e1f9af802e71713b0bec0f6acb (patch) | |
tree | bd23fc46ae9325ae37fe2366c587cd842a48713b /tests | |
parent | f3926cd18e2ba64f2643c6c4f6a981ed99868895 (diff) | |
download | mariadb-git-552d33095a25f6e1f9af802e71713b0bec0f6acb.tar.gz |
MDEV-5273 Prepared statement doesn't return metadata after prepare.
Fix for SHOW GRANTS statement.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 3d46a720cf7..84353f63d3b 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -436,6 +436,13 @@ static void test_prepare_simple() DIE_UNLESS(mysql_stmt_field_count(stmt) == 2); mysql_stmt_close(stmt); + /* show grants */ + strmov(query, "SHOW GRANTS"); + stmt= mysql_simple_prepare(mysql, query); + check_stmt(stmt); + DIE_UNLESS(mysql_stmt_field_count(stmt) == 1); + mysql_stmt_close(stmt); + /* now fetch the results ..*/ rc= mysql_commit(mysql); myquery(rc); |