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.

SHOW SLAVE STATUS fixed.
This commit is contained in:
Alexey Botchkov
2016-01-27 13:31:53 +04:00
parent 552d33095a
commit 75a1d866dd
4 changed files with 249 additions and 210 deletions

View File

@@ -443,6 +443,13 @@ static void test_prepare_simple()
DIE_UNLESS(mysql_stmt_field_count(stmt) == 1);
mysql_stmt_close(stmt);
/* show slave status */
strmov(query, "SHOW SLAVE STATUS");
stmt= mysql_simple_prepare(mysql, query);
check_stmt(stmt);
DIE_UNLESS(mysql_stmt_field_count(stmt) == 47);
mysql_stmt_close(stmt);
/* now fetch the results ..*/
rc= mysql_commit(mysql);
myquery(rc);