-
Notifications
You must be signed in to change notification settings - Fork 44
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 #288 from Mytherin/uppercaseops
Fix #284: quote uppercase identifiers when shipping queries to Postgres
- Loading branch information
Showing
7 changed files
with
53 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# name: test/sql/storage/attach_upper_case.test | ||
# description: Test modifying an upper-case table | ||
# group: [storage] | ||
|
||
require postgres_scanner | ||
|
||
require-env POSTGRES_TEST_DATABASE_AVAILABLE | ||
|
||
statement ok | ||
PRAGMA enable_verification | ||
|
||
statement ok | ||
ATTACH 'dbname=postgresscanner' AS s1 (TYPE POSTGRES) | ||
|
||
statement ok | ||
USE s1 | ||
|
||
statement ok | ||
DROP SCHEMA IF EXISTS SCHEM01 CASCADE | ||
|
||
statement ok | ||
CREATE SCHEMA SCHEM01 | ||
|
||
statement ok | ||
create or replace table SCHEM01.TAB01(COL01 VARCHAR); | ||
|
||
statement ok | ||
insert into SCHEM01.TAB01 values ('abc') | ||
|
||
statement ok | ||
update SCHEM01.TAB01 set COL01='zxcv' | ||
|
||
query I | ||
SELECT COL01 FROM SCHEM01.TAB01 | ||
---- | ||
zxcv | ||
|
||
statement ok | ||
truncate SCHEM01.tab01 |