summaryrefslogtreecommitdiff
path: root/mysql-test/t/perror.test
diff options
context:
space:
mode:
authormsvensson@neptunus.(none) <>2006-07-26 14:09:20 +0200
committermsvensson@neptunus.(none) <>2006-07-26 14:09:20 +0200
commit9e000766b7c22c2de7ff58a6c1ae7bb3abb1709c (patch)
tree328d27d08b707854347a0457312e5c1ee8517dbd /mysql-test/t/perror.test
parentbbf6c985c8979d72ccb314768deb2ed2e71dfa14 (diff)
downloadmariadb-git-9e000766b7c22c2de7ff58a6c1ae7bb3abb1709c.tar.gz
Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror
- Since error 1186 is not found among NDB error codes, the message retuned should indicate that.
Diffstat (limited to 'mysql-test/t/perror.test')
-rw-r--r--mysql-test/t/perror.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/perror.test b/mysql-test/t/perror.test
index 81847f85c96..63f2301f18e 100644
--- a/mysql-test/t/perror.test
+++ b/mysql-test/t/perror.test
@@ -9,3 +9,14 @@ enable_query_log;
--exec $MY_PERROR 150
--exec $MY_PERROR --silent 120
+#
+# Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror
+#
+
+# As long there is no error code 1186 defined by NDB
+# we should get a message "Illegal ndb error code: 1186"
+--error 1
+--exec $MY_PERROR --ndb 1186
+
+# As there is an error code defined for 1186, expect error
+--exec $MY_PERROR 1186