Skip to content

Fix DuckDB :: casting warning#1284

Merged
lovasoa merged 1 commit into
sqlpage:mainfrom
kimjune01:fix-duckdb-cast-warning
May 12, 2026
Merged

Fix DuckDB :: casting warning#1284
lovasoa merged 1 commit into
sqlpage:mainfrom
kimjune01:fix-duckdb-cast-warning

Conversation

@kimjune01
Copy link
Copy Markdown
Contributor

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
Copy link
Copy Markdown
Collaborator

@lovasoa lovasoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you for your contribution!

@lovasoa lovasoa merged commit 913e0ba into sqlpage:main May 12, 2026
14 checks passed
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

2 participants