Skip to content

Commit

Permalink
fix sql test
Browse files Browse the repository at this point in the history
  • Loading branch information
dentiny committed Dec 21, 2024
1 parent d29be83 commit 634ad43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions test/regression/expected/unsupported_types.out
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CREATE TEMP TABLE numeric_tbl (a NUMERIC) USING duckdb;
ERROR: Unsupported type when creating column: type precision 40 with scale 5 is not supported by duckdb, which only allows maximum precision 38
CREATE TEMP TABLE large_numeric_tbl (a NUMERIC) USING duckdb;
INSERT INTO large_numeric_tbl VALUES(856324.111122223333::NUMERIC(40,12));
ERROR: (PGDuckDB/CreatePlan) Prepared query returned an error: 'Parser Error: Width must be between 1 and 38!
3 changes: 2 additions & 1 deletion test/regression/sql/unsupported_types.sql
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
CREATE TEMP TABLE numeric_tbl (a NUMERIC) USING duckdb;
CREATE TEMP TABLE large_numeric_tbl (a NUMERIC) USING duckdb;
INSERT INTO large_numeric_tbl VALUES(856324.111122223333::NUMERIC(40,12));

0 comments on commit 634ad43

Please sign in to comment.