diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-27 14:58:52 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-28 11:12:03 +0400 |
commit | d16d40be2c47d8be5360ae7604f0199635dc0063 (patch) | |
tree | b239d01faadc378f239b29d706da19bf8a0386e3 /tests | |
parent | 34df3140f2e5fe3a8531c5f6eb430e2192bfa737 (diff) | |
download | mariadb-git-d16d40be2c47d8be5360ae7604f0199635dc0063.tar.gz |
MDEV-5273 Prepared statement doesn't return metadata after prepare.
SHOW CREATE PROCEDURE/FUNCTION fixed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index ccc39d5f9ce..dd892b45449 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -457,6 +457,20 @@ static void test_prepare_simple() DIE_UNLESS(mysql_stmt_field_count(stmt) == 4); mysql_stmt_close(stmt); + /* show create procedure */ + strmov(query, "SHOW CREATE PROCEDURE e1;"); + stmt= mysql_simple_prepare(mysql, query); + check_stmt(stmt); + DIE_UNLESS(mysql_stmt_field_count(stmt) == 6); + mysql_stmt_close(stmt); + + /* show create function */ + strmov(query, "SHOW CREATE FUNCTION e1;"); + stmt= mysql_simple_prepare(mysql, query); + check_stmt(stmt); + DIE_UNLESS(mysql_stmt_field_count(stmt) == 6); + mysql_stmt_close(stmt); + /* now fetch the results ..*/ rc= mysql_commit(mysql); myquery(rc); |