Skip to content

Commit 2e72320

Browse files
committed
Add test
1 parent bf19da3 commit 2e72320

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# name: test/sql/scanner/postgres_query_error.test
2+
# description: Test running postgres_query
3+
# group: [scanner]
4+
5+
require postgres_scanner
6+
7+
require-env POSTGRES_TEST_DATABASE_AVAILABLE
8+
9+
statement ok
10+
ATTACH 'dbname=postgresscanner' AS s1 (TYPE POSTGRES)
11+
12+
statement ok
13+
BEGIN
14+
15+
statement ok
16+
CALL pg_clear_cache();
17+
18+
query III
19+
select * from postgres_query('s1', 'SELECT * FROM cars');
20+
----
21+
ferari testarosa red
22+
aston martin db2 blue
23+
bentley mulsanne gray
24+
ford T black
25+
26+
query III
27+
SELECT * FROM s1.cars
28+
----
29+
ferari testarosa red
30+
aston martin db2 blue
31+
bentley mulsanne gray
32+
ford T black
33+

0 commit comments

Comments
 (0)