should be it
This commit is contained in:
28
external/duckdb/test/sql/select/test_schema_reference.test
vendored
Normal file
28
external/duckdb/test/sql/select/test_schema_reference.test
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# name: test/sql/select/test_schema_reference.test
|
||||
# description: Test schema reference in column reference
|
||||
# group: [select]
|
||||
|
||||
statement ok
|
||||
PRAGMA enable_verification
|
||||
|
||||
statement ok
|
||||
CREATE SCHEMA s1;
|
||||
|
||||
statement ok
|
||||
CREATE TABLE s1.tbl(i INTEGER)
|
||||
|
||||
# standard schema reference
|
||||
statement ok
|
||||
SELECT s1.tbl.i FROM s1.tbl;
|
||||
|
||||
# schema mismatch
|
||||
statement error
|
||||
SELECT s2.tbl.i FROM s1.tbl;
|
||||
----
|
||||
<REGEX>:.*Binder Error.*table.*not found.*
|
||||
|
||||
# no schema present
|
||||
statement error
|
||||
SELECT a.tbl.i FROM range(10) tbl(i)
|
||||
----
|
||||
<REGEX>:.*Binder Error.*table.*not found.*
|
||||
Reference in New Issue
Block a user