Skip to content

Commit 5a6b581

Browse files
committed
Fix DuckDB :: casting warning
DuckDB natively supports PostgreSQL's :: casting shorthand: https://duckdb.org/docs/stable/sql/expressions/cast#explicit-casting Added SupportedDatabase::Duckdb to the allow-list to prevent unnecessary warning and CAST transformation. Fixes #1200
1 parent fde590b commit 5a6b581

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/webserver/database/sql/parameter_extraction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ impl VisitorMut for ParameterExtractor {
572572
..
573573
} if ![
574574
SupportedDatabase::Postgres,
575+
SupportedDatabase::Duckdb,
575576
SupportedDatabase::Snowflake,
576577
SupportedDatabase::Generic,
577578
]

0 commit comments

Comments
 (0)