Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pg-kit] SQL error due to double quotes around postgresql non native types #2863

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mtarroyo
Copy link

@mtarroyo mtarroyo commented Aug 27, 2024

Changed the portion of the SQL generator code that concatenates the column type to the SQL statement, preventing the addition of double quotes.

Postgresql will raise an exception if the type is surrounded by double quotes like "time(0)", "vetor(0)" or "geography(Point,4326)".

SQL Error [42704]: ERROR: type "geography(Point,4326)" does not exist

Fix #1804

Changed the portion of the SQL generator code that concatenates the column type to the SQL statement, preventing the addition of double quotes. Fix for drizzle-team#1804
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.

[BUG]: Time with precision in drizzle-orm/pg-core adds double-quotes around type
1 participant