mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -1875,6 +1875,61 @@ ERROR 42S02: Table 'test.t1' doesn't exist
|
||||
SET STATEMENT max_statement_time=180 FOR BACKUP LOCK test.t1;
|
||||
SET STATEMENT max_statement_time=180 FOR BACKUP UNLOCK;
|
||||
set SQL_MODE=@save_sql_mode;
|
||||
#
|
||||
# MDEV-21997: Server crashes in LEX::create_item_ident_sp
|
||||
# upon use of unknown identifier
|
||||
#
|
||||
/*! IF 1 IN ( SELECT 2 ) OR foo = 3 THEN */ SELECT 4;
|
||||
ERROR 42000: Undeclared variable: foo
|
||||
BEGIN NOT ATOMIC
|
||||
IF (SELECT 2) OR foo = 3 THEN
|
||||
SELECT 4;
|
||||
END IF ;
|
||||
END;
|
||||
$$
|
||||
ERROR 42000: Undeclared variable: foo
|
||||
# ... but if declare it then it still work
|
||||
BEGIN NOT ATOMIC
|
||||
DECLARE foo int;
|
||||
IF (SELECT 2) OR foo = 3 THEN
|
||||
SELECT 4;
|
||||
END IF ;
|
||||
END;
|
||||
$$
|
||||
4
|
||||
4
|
||||
CASE (SELECT 2) OR foo
|
||||
WHEN 1 THEN
|
||||
SET @x=10;
|
||||
$$
|
||||
ERROR 42000: Undeclared variable: foo
|
||||
/*! WHILE (SELECT 2) OR foo */
|
||||
SET @x=10;
|
||||
END WHILE;
|
||||
$$
|
||||
ERROR 42000: Undeclared variable: foo
|
||||
REPEAT
|
||||
SET @x=10;
|
||||
UNTIL (SELECT 2) OR foo
|
||||
END REPEAT;
|
||||
$$
|
||||
ERROR 42000: Undeclared variable: foo
|
||||
FOR i IN 1..(SELECT 2) OR foo
|
||||
DO
|
||||
SET @x=10;
|
||||
END FOR;
|
||||
$$
|
||||
ERROR 42000: Undeclared variable: foo
|
||||
# ... but automatic FOR variable still work
|
||||
FOR i IN 1..2
|
||||
DO
|
||||
SELECT i;
|
||||
END FOR;
|
||||
$$
|
||||
i
|
||||
1
|
||||
i
|
||||
2
|
||||
# End of 10.4 tests
|
||||
#
|
||||
# Start of 10.5 tests
|
||||
|
Reference in New Issue
Block a user