Skip to content

Fix DuckDB :: casting warning#1284

Open
kimjune01 wants to merge 1 commit into
sqlpage:mainfrom
kimjune01:fix-duckdb-cast-warning
Open

Fix DuckDB :: casting warning#1284
kimjune01 wants to merge 1 commit into
sqlpage:mainfrom
kimjune01:fix-duckdb-cast-warning

Conversation

@kimjune01
Copy link
Copy Markdown

DuckDB natively supports PostgreSQL's :: casting shorthand (docs), but SQLPage was warning users and transforming it to CAST().

This adds SupportedDatabase::Duckdb to the allow-list alongside Postgres, Snowflake, and Generic to prevent the unnecessary warning and transformation.

Fixes #1200

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 sqlpage#1200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(DuckDB) SQLPage warning when using casting shorthand

1 participant