mirror of
https://github.com/MariaDB/server.git
synced 2025-07-07 06:01:31 +03:00
MDEV-11848 Automatic statement repreparation changes query semantics
This commit is contained in:
@ -742,3 +742,20 @@ DROP FUNCTION test_function;
|
||||
test_function(@to_var9)
|
||||
wxyz\_ef
|
||||
|
||||
# END OF CASE - STRING LILTERAL WITH BACKSLASH IN FUNCTION RETURNING STRING
|
||||
DROP TABLE test_table;
|
||||
DROP FUNCTION test_function;
|
||||
SET @@sql_mode= @org_mode;
|
||||
|
||||
#End of Test for Bug#12601974
|
||||
#
|
||||
# MDEV-11848 Automatic statement repreparation changes query semantics
|
||||
#
|
||||
SET sql_mode=DEFAULT;
|
||||
CREATE OR REPLACE TABLE t1 (a TEXT);
|
||||
PREPARE stmt FROM 'INSERT INTO t1 (a) VALUES (2||3)';
|
||||
EXECUTE stmt;
|
||||
SET sql_mode=ORACLE;
|
||||
EXECUTE stmt;
|
||||
ALTER TABLE t1 ADD b INT;
|
||||
EXECUTE stmt;
|
||||
|
Reference in New Issue
Block a user