-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from Mytherin/issue160
Fix #160: correctly account for schema name in DROP
- Loading branch information
Showing
3 changed files
with
29 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
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,25 @@ | ||
# name: test/sql/storage/attach_drop_table_in_schema.test | ||
# description: Test DROP TABLE within a schema | ||
# group: [storage] | ||
|
||
require postgres_scanner | ||
|
||
require-env POSTGRES_TEST_DATABASE_AVAILABLE | ||
|
||
statement ok | ||
ATTACH 'dbname=postgresscanner' AS simple (TYPE POSTGRES) | ||
|
||
statement ok | ||
DROP SCHEMA IF EXISTS simple.new_schema CASCADE | ||
|
||
statement ok | ||
create schema simple.new_schema; | ||
|
||
statement ok | ||
create table simple.new_schema.newtable(i int); | ||
|
||
statement ok | ||
drop table simple.new_schema.newtable; | ||
|
||
statement ok | ||
drop schema simple.new_schema |