doctrine/sql-formatter

[Question] PostgreSQL Cast Operator

rodnaph opened this issue · 3 comments

I noticed the PostgreSQL cast shortcut is incorrectly split, for example 123::bigint becomes 123: :bigint.

I can look at making a PR to support this, but first I wanted to check if there was interest in this tool supporting platform specific syntax... ?

stof commented

IIRC, the package already supports the @variable syntax of SQL Server, so I would say this might be fine.

I noticed the PostgreSQL cast shortcut is incorrectly split, for example 123::bigint becomes 123: :bigint.

I can look at making a PR to support this, but first I wanted to check if there was interest in this tool supporting platform specific syntax... ?

Yes, it will be helpful for me