Commit 43ecae5e authored by Alexander Barkov's avatar Alexander Barkov

Updating mysql.test, it now supports NULL columns.

modified:
  mysql-test/suite/connect/r/mysql.result
  mysql-test/suite/connect/t/mysql.test
parent edd16158
...@@ -46,7 +46,7 @@ t2 CREATE TABLE `t2` ( ...@@ -46,7 +46,7 @@ t2 CREATE TABLE `t2` (
) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`=MYSQL `TABNAME`='t1' `OPTION_LIST`='host=localhost,user=root,port=PORT' ) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`=MYSQL `TABNAME`='t1' `OPTION_LIST`='host=localhost,user=root,port=PORT'
SELECT * FROM t2; SELECT * FROM t2;
a b a b
0 NULL NULL
0 test00 0 test00
1 test01 1 test01
2 test02 2 test02
...@@ -61,6 +61,21 @@ t2 CREATE TABLE `t2` ( ...@@ -61,6 +61,21 @@ t2 CREATE TABLE `t2` (
) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`=MYSQL `TABNAME`='t1' `OPTION_LIST`='host=localhost,user=root,port=PORT' ) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`=MYSQL `TABNAME`='t1' `OPTION_LIST`='host=localhost,user=root,port=PORT'
SELECT * FROM t2; SELECT * FROM t2;
a b a b
NULL NULL
0 test00
1 test01
2 test02
3 test03
DROP TABLE t2;
CREATE TABLE t2 (a INT NOT NULL, b CHAR(10) NOT NULL) ENGINE=CONNECT TABLE_TYPE=MYSQL TABNAME='t1' OPTION_LIST='host=localhost,user=root,port=PORT';
SHOW CREATE TABLE t2;
Table Create Table
t2 CREATE TABLE `t2` (
`a` int(11) NOT NULL,
`b` char(10) NOT NULL
) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`=MYSQL `TABNAME`='t1' `OPTION_LIST`='host=localhost,user=root,port=PORT'
SELECT * FROM t2;
a b
0 0
0 test00 0 test00
1 test01 1 test01
...@@ -76,7 +91,7 @@ t2 CREATE TABLE `t2` ( ...@@ -76,7 +91,7 @@ t2 CREATE TABLE `t2` (
) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`=MYSQL `TABNAME`='t1' `OPTION_LIST`='host=localhost,user=root,port=PORT' ) ENGINE=CONNECT DEFAULT CHARSET=latin1 `TABLE_TYPE`=MYSQL `TABNAME`='t1' `OPTION_LIST`='host=localhost,user=root,port=PORT'
SELECT * FROM t2; SELECT * FROM t2;
a b a b
0 NULL NULL
0 0 0 0
1 0 1 0
2 0 2 0
......
...@@ -73,6 +73,15 @@ SELECT * FROM t2; ...@@ -73,6 +73,15 @@ SELECT * FROM t2;
DROP TABLE t2; DROP TABLE t2;
# Explicit table structure: remote NULL, local NOT NULL
--replace_result $PORT PORT
--eval CREATE TABLE t2 (a INT NOT NULL, b CHAR(10) NOT NULL) ENGINE=CONNECT TABLE_TYPE=MYSQL TABNAME='t1' OPTION_LIST='host=localhost,user=root,port=$PORT'
--replace_result $PORT PORT
SHOW CREATE TABLE t2;
SELECT * FROM t2;
DROP TABLE t2;
# Explicit table structure with wrong column types # Explicit table structure with wrong column types
--replace_result $PORT PORT --replace_result $PORT PORT
--eval CREATE TABLE t2 (a char(10), b int) ENGINE=CONNECT TABLE_TYPE=MYSQL TABNAME='t1' OPTION_LIST='host=localhost,user=root,port=$PORT' --eval CREATE TABLE t2 (a char(10), b int) ENGINE=CONNECT TABLE_TYPE=MYSQL TABNAME='t1' OPTION_LIST='host=localhost,user=root,port=$PORT'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment