Commit 40ab5ffe authored by Olivier Bertrand's avatar Olivier Bertrand

- Added --eval and -- replace_result

modified:
  mysql-test/suite/connect/r/tbl.result
  mysql-test/suite/connect/t/tbl.test
parent 32669e4c
...@@ -44,11 +44,7 @@ ta message ...@@ -44,11 +44,7 @@ ta message
1 Testing 1 Testing
2 myisam table 2 myisam table
3 t4 3 t4
CREATE TABLE total ( CREATE TABLE total (tabname CHAR(8) NOT NULL SPECIAL='TABID', ta TINYINT NOT NULL FLAG=1, message CHAR(20)) engine=CONNECT table_type=TBL table_list='t1,t2,t3,t4' option_list='port=PORT';
tabname CHAR(8) NOT NULL SPECIAL='TABID',
ta TINYINT NOT NULL FLAG=1,
message CHAR(20))
engine=CONNECT table_type=TBL table_list='t1,t2,t3,t4' option_list='port=$PORT';
select * from total; select * from total;
tabname ta message tabname ta message
t1 1 Testing t1 1 Testing
......
let $MYSQLD_DATADIR= `select @@datadir`; let $MYSQLD_DATADIR= `select @@datadir`;
let $PORT= `select @@port`; let $PORT= `select @@port`;
--disable_query_log
--replace_result $PORT PORT
--enable_query_log
--echo # --echo #
--echo # Checking TBL tables --echo # Checking TBL tables
--echo # --echo #
...@@ -32,11 +28,8 @@ message CHAR(20)) ENGINE=MyISAM; ...@@ -32,11 +28,8 @@ message CHAR(20)) ENGINE=MyISAM;
INSERT INTO t4 (message) VALUES ('Testing'),('myisam table'),('t4'); INSERT INTO t4 (message) VALUES ('Testing'),('myisam table'),('t4');
SELECT * FROM t4; SELECT * FROM t4;
CREATE TABLE total ( --replace_result $PORT PORT
tabname CHAR(8) NOT NULL SPECIAL='TABID', --eval CREATE TABLE total (tabname CHAR(8) NOT NULL SPECIAL='TABID', ta TINYINT NOT NULL FLAG=1, message CHAR(20)) engine=CONNECT table_type=TBL table_list='t1,t2,t3,t4' option_list='port=$PORT'
ta TINYINT NOT NULL FLAG=1,
message CHAR(20))
engine=CONNECT table_type=TBL table_list='t1,t2,t3,t4' option_list='port=$PORT';
select * from total; select * from total;
select * from total where tabname = 't2'; select * from total where tabname = 't2';
......
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