diff options
author | unknown <konstantin@mysql.com> | 2005-01-12 21:51:04 +0300 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2005-01-12 21:51:04 +0300 |
commit | fd7e0d847b6fd2d0f9729b3c6a37f19e62d67128 (patch) | |
tree | 6229b176798bf6025d1738c5ccaf5b0f8d28bf8b /tests | |
parent | a1392a321b0ad9177ea9475a2db867332600c2ac (diff) | |
parent | a3d3aef15786142094a04a17148a2f3a0166197b (diff) | |
download | mariadb-git-fd7e0d847b6fd2d0f9729b3c6a37f19e62d67128.tar.gz |
manual merge
sql/mysqld.cc:
Auto merged
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client_test.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/client_test.c b/tests/client_test.c index d815a9abb3e..498b57fdeab 100644 --- a/tests/client_test.c +++ b/tests/client_test.c @@ -12481,6 +12481,30 @@ static void test_truncation_option() mysql_stmt_close(stmt); } + +/* Bug#6761 - mysql_list_fields doesn't work */ + +static void test_bug6761(void) +{ + const char *stmt_text; + MYSQL_RES *res; + int rc; + myheader("test_bug6761"); + + stmt_text= "CREATE TABLE t1 (a int, b char(255), c decimal)"; + rc= mysql_real_query(mysql, stmt_text, strlen(stmt_text)); + myquery(rc); + + res= mysql_list_fields(mysql, "t1", "%"); + DIE_UNLESS(res && mysql_num_fields(res) == 3); + mysql_free_result(res); + + stmt_text= "DROP TABLE t1"; + rc= mysql_real_query(mysql, stmt_text, strlen(stmt_text)); + myquery(rc); +} + + /* Read and parse arguments and MySQL options from my.cnf */ @@ -12687,6 +12711,7 @@ static struct my_tests_st my_tests[]= { { "test_bug4172", test_bug4172 }, { "test_conversion", test_conversion }, { "test_rewind", test_rewind }, + { "test_bug6761", test_bug6761 }, { "test_view", test_view }, { "test_view_where", test_view_where }, { "test_view_2where", test_view_2where }, |