mirror of
https://github.com/MariaDB/server.git
synced 2025-06-01 19:42:01 +03:00
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
17 lines
342 B
Plaintext
17 lines
342 B
Plaintext
SET sql_mode=ORACLE;
|
|
#
|
|
# MDEV-15975 PL/SQL parser does not understand historical queries
|
|
#
|
|
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;
|
|
a
|
|
10
|
|
20
|
|
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (NOW()+INTERVAL 10 YEAR);
|
|
a
|
|
20
|
|
DROP TABLE t1;
|