mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-15975 PL/SQL parser does not understand historical queries
Merging the following features from sql_yacc.yy to sql_yacc_ora.yy: - system versioning - column compression - table value constructor - spatial predicate WITHIN - DELETE_DOMAIN_ID
This commit is contained in:
13
mysql-test/suite/compat/oracle/t/versioning.test
Normal file
13
mysql-test/suite/compat/oracle/t/versioning.test
Normal file
@ -0,0 +1,13 @@
|
||||
SET sql_mode=ORACLE;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-15975 PL/SQL parser does not understand historical queries
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (a INT) WITH SYSTEM VERSIONING;
|
||||
INSERT INTO t1 VALUES (10);
|
||||
DELETE FROM t1;
|
||||
INSERT INTO t1 VALUES (20);
|
||||
SELECT * FROM t1 FOR SYSTEM_TIME ALL;
|
||||
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (NOW()+INTERVAL 10 YEAR);
|
||||
DROP TABLE t1;
|
Reference in New Issue
Block a user