| 1 |
--source include/have_ndb.inc |
| 2 |
--source include/have_debug.inc |
| 3 |
|
| 4 |
# Test that warnings are pushed by ha_ndbcluster::append_create_info() when |
| 5 |
# a mismatch is detected betweeen the modifiers in the COMMENT= and NDB |
| 6 |
# table definition. |
| 7 |
CREATE TABLE t1 ( |
| 8 |
a int PRIMARY KEY |
| 9 |
) ENGINE = NDB; |
| 10 |
# Set DEBUG to force a COMMENT= which mismatch |
| 11 |
SET GLOBAL DEBUG="+d,ndb_append_create_info_unsync"; |
| 12 |
SHOW CREATE TABLE t1; |
| 13 |
SET GLOBAL DEBUG="-d,ndb_append_create_info_unsync"; |
| 14 |
DROP TABLE t1; |
| 15 |
|
| 16 |
|
| 17 |
# Test that warnings are pushed by ha_ndbcluster::append_create_info() when |
| 18 |
# the COMMENT= can't be parsed |
| 19 |
CREATE TABLE t1 ( |
| 20 |
a int PRIMARY KEY |
| 21 |
) ENGINE = NDB; |
| 22 |
# Set DEBUG to force an unparsable COMMENT= |
| 23 |
SET GLOBAL DEBUG="+d,ndb_append_create_info_unparse"; |
| 24 |
SHOW CREATE TABLE t1; |
| 25 |
SET GLOBAL DEBUG="-d,ndb_append_create_info_unparse"; |
| 26 |
DROP TABLE t1; |
| 27 |
|