Skip to content

Commit

Permalink
psql15 does not support the "\bind" syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-XM-Zeng committed Sep 30, 2024
1 parent a216a4b commit fe66eba
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
22 changes: 0 additions & 22 deletions test/regression/expected/basic.out
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,6 @@ SELECT a, COUNT(*) FROM t WHERE a > 5 GROUP BY a ORDER BY a;
9 | 100
(4 rows)

select COUNT(*) from t \bind \g
count
-------
1000
(1 row)

select a, COUNT(*) from t WHERE a > $1 GROUP BY a ORDER BY a \bind 5 \g
a | count
---+-------
6 | 100
7 | 100
8 | 100
9 | 100
(4 rows)

\bind 7 \g
a | count
---+-------
8 | 100
9 | 100
(2 rows)

SET duckdb.max_threads_per_query to 4;
SELECT COUNT(*) FROM t;
count
Expand Down
3 changes: 0 additions & 3 deletions test/regression/sql/basic.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ SET client_min_messages to 'DEBUG1';

SELECT COUNT(*) FROM t;
SELECT a, COUNT(*) FROM t WHERE a > 5 GROUP BY a ORDER BY a;
select COUNT(*) from t \bind \g
select a, COUNT(*) from t WHERE a > $1 GROUP BY a ORDER BY a \bind 5 \g
\bind 7 \g

SET duckdb.max_threads_per_query to 4;

Expand Down

0 comments on commit fe66eba

Please sign in to comment.