Skip to content

Support XML type in Postgresql #5331

@digitalheir

Description

@digitalheir

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions