mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-17959 Assertion `opt_bootstrap || mysql_parse_status || thd->lex->select_stack_top == 0' failed in parse_sql upon DELETE HISTORY under ORACLE mode
This commit is contained in:
@ -14,3 +14,11 @@ SELECT * FROM t1 FOR SYSTEM_TIME AS OF (NOW()+INTERVAL 10 YEAR);
|
|||||||
a
|
a
|
||||||
20
|
20
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
#
|
||||||
|
# MDEV-17959 Assertion `opt_bootstrap || mysql_parse_status || thd->lex->select_stack_top == 0' failed in parse_sql upon DELETE HISTORY under ORACLE mode
|
||||||
|
#
|
||||||
|
SET SQL_MODE= ORACLE;
|
||||||
|
CREATE TABLE t1 (a INT);
|
||||||
|
DELETE HISTORY FROM t1;
|
||||||
|
ERROR HY000: Table `t1` is not system-versioned
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -11,3 +11,13 @@ INSERT INTO t1 VALUES (20);
|
|||||||
SELECT * FROM t1 FOR SYSTEM_TIME ALL;
|
SELECT * FROM t1 FOR SYSTEM_TIME ALL;
|
||||||
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (NOW()+INTERVAL 10 YEAR);
|
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (NOW()+INTERVAL 10 YEAR);
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-17959 Assertion `opt_bootstrap || mysql_parse_status || thd->lex->select_stack_top == 0' failed in parse_sql upon DELETE HISTORY under ORACLE mode
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
SET SQL_MODE= ORACLE;
|
||||||
|
CREATE TABLE t1 (a INT);
|
||||||
|
--error ER_VERS_NOT_VERSIONED
|
||||||
|
DELETE HISTORY FROM t1;
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -13679,6 +13679,7 @@ delete_part2:
|
|||||||
| HISTORY_SYM delete_single_table opt_delete_system_time
|
| HISTORY_SYM delete_single_table opt_delete_system_time
|
||||||
{
|
{
|
||||||
Lex->last_table()->vers_conditions= Lex->vers_conditions;
|
Lex->last_table()->vers_conditions= Lex->vers_conditions;
|
||||||
|
Lex->pop_select(); //main select
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user