mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
perror returns 2 if it does not understand the option --ndb
Move that perror test to ndb_basic so it's only run when there is support for --ndb
This commit is contained in:
parent
a5112188e2
commit
823ead0775
4 changed files with 11 additions and 6 deletions
|
@ -748,3 +748,4 @@ f1 f2 f3
|
|||
111111 aaaaaa 1
|
||||
222222 bbbbbb 2
|
||||
drop table t1;
|
||||
Illegal ndb error code: 1186
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
Illegal ndb error code: 1186
|
||||
Illegal error code: 1186
|
||||
|
|
|
@ -700,3 +700,13 @@ select * from t1 order by f1;
|
|||
select * from t1 order by f2;
|
||||
select * from t1 order by f3;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# 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 2>&1
|
||||
|
||||
|
|
|
@ -13,11 +13,6 @@ enable_query_log;
|
|||
# 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 2>&1
|
||||
|
||||
# As there is an error code defined for 1186, expect error
|
||||
--error 1
|
||||
--exec $MY_PERROR 1186 2>&1
|
||||
|
|
Loading…
Reference in a new issue