From fe66eba3c282aaeb4e66cdfeb0c1858b1b029a24 Mon Sep 17 00:00:00 2001 From: zengman Date: Tue, 1 Oct 2024 02:17:58 +0800 Subject: [PATCH] psql15 does not support the "\bind" syntax --- test/regression/expected/basic.out | 22 ---------------------- test/regression/sql/basic.sql | 3 --- 2 files changed, 25 deletions(-) diff --git a/test/regression/expected/basic.out b/test/regression/expected/basic.out index ed181bea..fc407602 100644 --- a/test/regression/expected/basic.out +++ b/test/regression/expected/basic.out @@ -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 diff --git a/test/regression/sql/basic.sql b/test/regression/sql/basic.sql index b9b3f5e9..d32d3f0a 100644 --- a/test/regression/sql/basic.sql +++ b/test/regression/sql/basic.sql @@ -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;