28 lines
548 B
SQL
28 lines
548 B
SQL
# 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.* |