-
Notifications
You must be signed in to change notification settings - Fork 40
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 #253 from duckdb/issue250
Fix #250 - always quote column names in CREATE TABLE to avoid Postgres' lowercasing them
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
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,24 @@ | ||
# name: test/sql/storage/attach_create_uppercase_names.test | ||
# description: Test creating tables with uppercase column names | ||
# group: [storage] | ||
|
||
require postgres_scanner | ||
|
||
require-env POSTGRES_TEST_DATABASE_AVAILABLE | ||
|
||
statement ok | ||
PRAGMA enable_verification | ||
|
||
statement ok | ||
ATTACH 'dbname=postgresscanner' AS s (TYPE POSTGRES) | ||
|
||
statement ok | ||
USE s | ||
|
||
statement ok | ||
CREATE OR REPLACE TABLE MyTable AS SELECT 42 MyColumn, 84 MySecondColumn | ||
|
||
query II | ||
SELECT MyColumn, MySecondColumn FROM MyTable | ||
---- | ||
42 84 |