1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-21998: Server crashes in st_select_lex::add_table_to_list upon mix of KILL and sequences

Continue support the hack of current select equal builtin select if
selects stack is empty even after subselects.
This commit is contained in:
Oleksandr Byelkin
2020-07-24 09:59:38 +02:00
parent fd9ca2a742
commit c6eb21cd87
14 changed files with 67 additions and 44 deletions

View File

@ -1045,7 +1045,7 @@ NULL;
END LOOP;
END;
$$
ERROR 42000: Undefined CURSOR: c2
ERROR 42000: Undeclared variable: c2
# Make sure "rec" shadows other declarations outside the loop
CREATE TABLE t1 (a INT, b VARCHAR(10));
INSERT INTO t1 VALUES (10, 'b0');

View File

@ -1019,7 +1019,7 @@ LOOP
EXIT WHEN unknown_ident IS NULL;
END LOOP;
END$$
ERROR 42S22: Unknown column 'unknown_ident' in 'field list'
ERROR 42000: Undeclared variable: unknown_ident
CREATE PROCEDURE p1
AS
BEGIN
@ -1028,7 +1028,7 @@ LOOP
EXIT label WHEN unknown_ident IS NULL;
END LOOP;
END$$
ERROR 42S22: Unknown column 'unknown_ident' in 'field list'
ERROR 42000: Undeclared variable: unknown_ident
CREATE PROCEDURE p1
AS
BEGIN
@ -1036,7 +1036,7 @@ LOOP
CONTINUE WHEN unknown_ident IS NULL;
END LOOP;
END$$
ERROR 42S22: Unknown column 'unknown_ident' in 'field list'
ERROR 42000: Undeclared variable: unknown_ident
CREATE PROCEDURE p1
AS
BEGIN
@ -1045,7 +1045,7 @@ LOOP
CONTINUE label WHEN unknown_ident IS NULL;
END LOOP;
END$$
ERROR 42S22: Unknown column 'unknown_ident' in 'field list'
ERROR 42000: Undeclared variable: unknown_ident
#
# MDEV-10583 sql_mode=ORACLE: SQL%ROWCOUNT
#