summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2006-02-15 11:22:03 -0800
committerunknown <jimw@mysql.com>2006-02-15 11:22:03 -0800
commit89dced9c46ef24d4bb630e9a1527c0501a447245 (patch)
treeed221c3ac197a5800b351d17fb461909c12b14d5 /tests
parent9d5bf35d6a0b192250e4041078c25022c9c79bb8 (diff)
parent5d6985c4a1ac64f9fbeaf861b22d0bbdbeb8cb21 (diff)
downloadmariadb-git-89dced9c46ef24d4bb630e9a1527c0501a447245.tar.gz
Merge mysql.com:/home/jimw/my/mysql-5.0-clean
into mysql.com:/home/jimw/my/mysql-5.1-clean client/mysqldump.c: Auto merged libmysql/libmysql.c: Auto merged tests/mysql_client_test.c: Auto merged
Diffstat (limited to 'tests')
-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 14e6fd1f791..32302732f14 100644
--- a/tests/mysql_client_test.c
+++ b/tests/mysql_client_test.c
@@ -14729,6 +14729,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()
@@ -15072,6 +15087,7 @@ static struct my_tests_st my_tests[]= {
{ "test_opt_reconnect", test_opt_reconnect },
{ "test_bug15510", test_bug15510},
{ "test_bug12744", test_bug12744 },
+ { "test_bug16143", test_bug16143 },
{ "test_bug16144", test_bug16144 },
{ "test_bug15613", test_bug15613 },
{ 0, 0 }