mirror of
https://github.com/MariaDB/server.git
synced 2025-11-09 11:41:36 +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
Cherry-pick from 11.8
This commit is contained in:
@@ -165,13 +165,9 @@ while ($_dt_tables)
|
||||
|
||||
# Now that we have the comma-separated list of columns, we can write
|
||||
# the table to a file.
|
||||
--disable_ps2_protocol
|
||||
--let $_dt_outfile= `SELECT @@datadir`
|
||||
--let $_dt_outfile= $_dt_outfile/diff_table-$_dt_connection-$_dt_database-$_dt_table
|
||||
--disable_cursor_protocol
|
||||
eval SELECT * INTO OUTFILE '$_dt_outfile' FROM $_dt_database.$_dt_table ORDER BY `$_dt_column_list`;
|
||||
--enable_cursor_protocol
|
||||
--enable_ps2_protocol
|
||||
|
||||
# Compare files.
|
||||
if ($_dt_prev_outfile)
|
||||
|
||||
Reference in New Issue
Block a user