diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-27 12:01:55 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-28 11:12:03 +0400 |
commit | f3926cd18e2ba64f2643c6c4f6a981ed99868895 (patch) | |
tree | 907763729c758b45c954498aa3d8fa0c4287ae87 /tests | |
parent | 07e976294089cbc0c8cf46d984565e6136ffa9e8 (diff) | |
download | mariadb-git-f3926cd18e2ba64f2643c6c4f6a981ed99868895.tar.gz |
MDEV-5273 Prepared statement doesn't return metadata after prepare.
Fix for SHOW CREATE DATABASE.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index b14b4f4dab9..3d46a720cf7 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -426,9 +426,14 @@ static void test_prepare_simple() strmov(query, "SHOW CREATE TABLE test_prepare_simple"); stmt= mysql_simple_prepare(mysql, query); check_stmt(stmt); - DIE_UNLESS(mysql_stmt_field_count(stmt) == 2); + mysql_stmt_close(stmt); + /* show create database */ + strmov(query, "SHOW CREATE DATABASE test"); + stmt= mysql_simple_prepare(mysql, query); + check_stmt(stmt); + DIE_UNLESS(mysql_stmt_field_count(stmt) == 2); mysql_stmt_close(stmt); /* now fetch the results ..*/ |