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

Support XML type in Postgresql #5331

Closed
digitalheir opened this issue Jul 6, 2024 · 0 comments · Fixed by #5334
Closed

Support XML type in Postgresql #5331

digitalheir opened this issue Jul 6, 2024 · 0 comments · Fixed by #5334
Labels

Comments

@digitalheir
Copy link

digitalheir commented Jul 6, 2024

SQLDelight Version

2.0.2

SQLDelight Dialect

postgresql

Describe the Bug

CREATE TABLE IF NOT EXISTS my_table(xml XML)
insert:
INSERT INTO my_table(xml) VALUES('<root></root>'::XML);

It fails because SQLDelight does not know the XML type.

I've tried to fake it with

CREATE TABLE IF NOT EXISTS my_table(xml TEXT)
insert:
INSERT INTO my_table(xml) VALUES(CAST('<root></root>' AS XML));

But it still fails, because it doesn't know the XML type.

Stacktrace

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant