mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
cleanup: select ... into
tests
* automatically disable ps2 and cursor protocol when the select statement returns no result set * remove manual {disable|enable}_{ps2|cursor}_protocol from around `select ... into` in tests * other misc collateral test cleanups
This commit is contained in:
@@ -824,8 +824,6 @@ eval CREATE TABLE t2 (
|
||||
i $datetime DEFAULT $current_timestamp ON UPDATE $current_timestamp NOT NULL
|
||||
);
|
||||
|
||||
--disable_cursor_protocol
|
||||
--disable_ps2_protocol
|
||||
SELECT 1 INTO OUTFILE 't3.dat' FROM dual;
|
||||
|
||||
SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
|
||||
@@ -833,8 +831,6 @@ INTO OUTFILE 't4.dat'
|
||||
FROM dual;
|
||||
|
||||
SELECT 1, 2 INTO OUTFILE 't5.dat' FROM dual;
|
||||
--enable_ps2_protocol
|
||||
--enable_cursor_protocol
|
||||
|
||||
--echo # Mon Aug 1 15:11:19 2011 UTC
|
||||
SET TIMESTAMP = 1312211479.918273;
|
||||
@@ -933,13 +929,9 @@ remove_file $MYSQLD_DATADIR/test/t5.dat;
|
||||
--echo # Mon Aug 1 15:11:19 2011 UTC
|
||||
SET TIMESTAMP = 1312211479.089786;
|
||||
|
||||
--disable_cursor_protocol
|
||||
--disable_ps2_protocol
|
||||
SELECT 1 INTO OUTFILE "file1.dat" FROM dual;
|
||||
SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
|
||||
INTO OUTFILE "file2.dat" FROM dual;
|
||||
--enable_ps2_protocol
|
||||
--enable_cursor_protocol
|
||||
|
||||
--echo # Too short row
|
||||
|
||||
|
Reference in New Issue
Block a user