1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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.
This commit is contained in:
Alexey Botchkov
2016-01-26 16:00:59 +04:00
parent a095c99301
commit df26954951
4 changed files with 157 additions and 68 deletions

View File

@@ -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);