Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-10588 sql_mode=ORACLE: TRUNCATE TABLE t1 [ {DROP|REUSE} STORAGE ]
- Loading branch information
Alexander Barkov
committed
Apr 5, 2017
1 parent
c0576ba
commit cd1afe0
Showing
7 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
SET sql_mode=ORACLE; | ||
# | ||
# MDEV-10588 sql_mode=ORACLE: TRUNCATE TABLE t1 [ {DROP|REUSE} STORAGE ] | ||
# | ||
CREATE TABLE t1 (a INT); | ||
TRUNCATE TABLE t1 REUSE STORAGE; | ||
TRUNCATE TABLE t1 DROP STORAGE; | ||
DROP TABLE t1; | ||
CREATE TABLE reuse (reuse INT); | ||
DROP TABLE reuse; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters