Skip to content

Fix 5331 add PostgreSql XML type #5334

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

Merged

Conversation

griffio
Copy link
Collaborator

@griffio griffio commented Jul 7, 2024

fixes #5331

https://www.postgresql.org/docs/16/datatype-xml.html

CREATE TABLE Test(
   x XML
);

insert:
INSERT INTO Test(x) VALUES ('<simple>test</simple>');

insertX:
INSERT INTO Test(x) VALUES (?);
sample.xQueries.insertX("<a>test</a>")

Note:
Support for "::xml" type casting is already in another pr #5261

griffio added 2 commits July 7, 2024 10:33
Map to SQLXML type on bind and String for results
fixture test
integration test
@griffio griffio marked this pull request as ready for review July 7, 2024 16:41
@digitalheir
Copy link

Thank you for the quick responsive. 🙏

@JakeWharton JakeWharton merged commit 19e393a into sqldelight:master Jul 8, 2024
11 checks passed
@griffio griffio deleted the fix-5331-add-postgresql-xml-type branch July 8, 2024 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Support XML type in Postgresql
3 participants