ON CONFLICT DO NOTHING without a conflict target is valid SQL as far as Postgres is concerned.
This commit is contained in:
parent
1b63280b74
commit
0d250f5b41
2 changed files with 3 additions and 2 deletions
|
|
@ -8,7 +8,8 @@ func TestOnConflict(t *testing.T) {
|
|||
|
||||
onConflict := &onConflictClause{}
|
||||
onConflict.DO_NOTHING()
|
||||
assertClauseSerialize(t, onConflict, "")
|
||||
assertClauseSerialize(t, onConflict, `
|
||||
ON CONFLICT DO NOTHING`)
|
||||
|
||||
onConflict = &onConflictClause{indexExpressions: ColumnList{table1ColBool}}
|
||||
onConflict.DO_NOTHING()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue