diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-27 13:31:53 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-01-28 11:12:03 +0400 |
commit | 75a1d866dd4c00b91ca9b29593ad41543f084544 (patch) | |
tree | 064a5b28c7fac3a643daf3f41e0b50d44aa126f2 /tests | |
parent | 552d33095a25f6e1f9af802e71713b0bec0f6acb (diff) | |
download | mariadb-git-75a1d866dd4c00b91ca9b29593ad41543f084544.tar.gz |
MDEV-5273 Prepared statement doesn't return metadata after prepare.
SHOW SLAVE STATUS fixed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_test.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c index 84353f63d3b..d871ea178ea 100644 --- a/tests/mysql_client_test.c +++ b/tests/mysql_client_test.c @@ -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); |