We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf19da3 commit 2e72320Copy full SHA for 2e72320
test/sql/scanner/postgres_query_error.test
@@ -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
13
+BEGIN
14
15
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
27
+SELECT * FROM s1.cars
28
29
30
31
32
33
0 commit comments