diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-26 16:00:59 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-26 23:18:13 +0400 |
commit | df2695495188b0c3459eabb40c8e390f56cddb27 (patch) | |
tree | b0262db29ac4475b5f9065e6a6294a702a894e27 /tests | |
parent | a095c99301a0acac9b2db9b294f24a8753ebed48 (diff) | |
download | mariadb-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.c | 9 |
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); |