mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -1137,6 +1137,30 @@ while ($1)
|
||||
--echo # @rnd should be 0
|
||||
select @rnd;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-24860: Incorrect behaviour of SET STATEMENT in case
|
||||
--echo # it is executed as a prepared statement
|
||||
--echo #
|
||||
PREPARE stmt FROM "SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR CREATE TABLE t1 AS SELECT CONCAT('abc') AS c1";
|
||||
EXECUTE stmt;
|
||||
DEALLOCATE PREPARE stmt;
|
||||
|
||||
--echo # Show definition of the table t1 created using Prepared Statement
|
||||
SHOW CREATE TABLE t1;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # Create the table t1 with the same definition as it used before
|
||||
--echo # using regular statement execution mode.
|
||||
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR CREATE TABLE t1 AS SELECT CONCAT('abc') AS c1;
|
||||
|
||||
--echo # Show that the table has the same definition as it is in case the table
|
||||
--echo # created in prepared statement mode.
|
||||
SHOW CREATE TABLE t1;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
create table t (a int);
|
||||
SET sql_mode=ORACLE;
|
||||
SET STATEMENT myisam_sort_buffer_size=800000 FOR OPTIMIZE TABLE t;
|
||||
@ -1152,3 +1176,5 @@ SET sql_mode=ORACLE;
|
||||
SET STATEMENT max_statement_time=30 FOR DELETE FROM mysql.user where user = 'unknown';
|
||||
SET sql_mode=default;
|
||||
SET STATEMENT max_statement_time=30 FOR DELETE FROM mysql.user where user = 'unknown';
|
||||
|
||||
--echo # End of 10.4 tests
|
||||
|
Reference in New Issue
Block a user