Skip to content

Wrap part of on_conflict_target in parentheses#1055

Open
Huliiiiii wants to merge 1 commit intoSeaQL:masterfrom
Huliiiiii:conflict2
Open

Wrap part of on_conflict_target in parentheses#1055
Huliiiiii wants to merge 1 commit intoSeaQL:masterfrom
Huliiiiii:conflict2

Conversation

@Huliiiiii
Copy link
Member

@tisonkun mentioned to me that in PostgreSQL, some statements used as the index_expression in a conflict_target need to be wrapped in parentheses.

https://www.postgresql.org/docs/current/sql-insert.html

where conflict_target can be one of:

    ( { index_column_name | ( index_expression ) } [ COLLATE collation ] [ opclass ] [, ...] ) [ WHERE index_predicate ]
    ON CONSTRAINT constraint_name

@Huliiiiii Huliiiiii requested review from Expurple and tyt2y3 February 9, 2026 08:15
In PostgreSQL, some statements need to be wrapped in parentheses, such
as `"col" IS NULL`
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.

1 participant