summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2016-01-26 16:00:59 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2016-01-26 23:18:13 +0400
commitdf2695495188b0c3459eabb40c8e390f56cddb27 (patch)
treeb0262db29ac4475b5f9065e6a6294a702a894e27 /tests
parenta095c99301a0acac9b2db9b294f24a8753ebed48 (diff)
downloadmariadb-git-df2695495188b0c3459eabb40c8e390f56cddb27.tar.gz
MDEV-5273 Prepared statement doesn't return metadata after prepare.
The metadata creation part of the mysqld_shww_create separated to be used on the mysqld_stmt_prepare stage.
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_test.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index a1a52e832dd..b14b4f4dab9 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -422,6 +422,15 @@ static void test_prepare_simple()
mysql_stmt_close(stmt);
+ /* show create */
+ 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);
+
/* now fetch the results ..*/
rc= mysql_commit(mysql);
myquery(rc);