summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/compat/oracle/t/truncate.test
blob: ac540047e49cb5dd4f34e7f750f5e33a8a506b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SET sql_mode=ORACLE;

--echo #
--echo # MDEV-10588 sql_mode=ORACLE: TRUNCATE TABLE t1 [ {DROP|REUSE} STORAGE ]
--echo #

CREATE TABLE t1 (a INT);
TRUNCATE TABLE t1 REUSE STORAGE;
TRUNCATE TABLE t1 DROP STORAGE;
DROP TABLE t1;

# REUSE is actually a reserved word in Oracle.
# But we don't reserve it for MDEV-10588

CREATE TABLE reuse (reuse INT);
DROP TABLE reuse;