summaryrefslogtreecommitdiff
path: root/mysql-test/t/perror.test
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-07-26 14:09:20 +0200
committerunknown <msvensson@neptunus.(none)>2006-07-26 14:09:20 +0200
commitde41f4e7bb0582101e4e1c8343962fa31bbe549e (patch)
tree328d27d08b707854347a0457312e5c1ee8517dbd /mysql-test/t/perror.test
parent0227a7b066bc64a05ab81dc8859227545829a386 (diff)
downloadmariadb-git-de41f4e7bb0582101e4e1c8343962fa31bbe549e.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. extra/perror.c: Move the !found out one level mysql-test/t/perror.test: Add test case for bug#16561 ndb/src/kernel/error/ndbd_exit_codes.c: Check not only for zero size string but also classification "unknown error" when looking for an error mesage for an error code
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