summaryrefslogtreecommitdiff
path: root/tests/mysql_client_test.c
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-02-15 20:16:33 +0100
committermsvensson@neptunus.(none) <>2006-02-15 20:16:33 +0100
commit12b23630db38ba9c0b172c1eb917bfd5f6b37120 (patch)
tree536bb54eb4bdbde74a31e5c0eacacd05d658d382 /tests/mysql_client_test.c
parent56ef2e28e42caf65cc7e3e36bed96a9ee317a6c1 (diff)
parent469cd9c610a7e5bfc959d76f5694a62bccefb71a (diff)
downloadmariadb-git-12b23630db38ba9c0b172c1eb917bfd5f6b37120.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0
Diffstat (limited to 'tests/mysql_client_test.c')
-rw-r--r--tests/mysql_client_test.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/mysql_client_test.c b/tests/mysql_client_test.c
index f4016f4368e..c265375a263 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -14743,6 +14743,21 @@ static void test_bug12744()
client_connect(0);
}
+/* Bug #16143: mysql_stmt_sqlstate returns an empty string instead of '00000' */
+
+static void test_bug16143()
+{
+ MYSQL_STMT *stmt;
+ myheader("test_bug16143");
+
+ stmt= mysql_stmt_init(mysql);
+ /* Check mysql_stmt_sqlstate return "no error" */
+ DIE_UNLESS(strcmp(mysql_stmt_sqlstate(stmt), "00000") == 0);
+
+ mysql_stmt_close(stmt);
+}
+
+
/* Bug #16144: mysql_stmt_attr_get type error */
static void test_bug16144()
@@ -15087,6 +15102,7 @@ static struct my_tests_st my_tests[]= {
{ "test_bug15510", test_bug15510 },
{ "test_opt_reconnect", test_opt_reconnect },
{ "test_bug12744", test_bug12744 },
+ { "test_bug16143", test_bug16143 },
{ "test_bug16144", test_bug16144 },
{ "test_bug15613", test_bug15613 },
{ 0, 0 }