MCPcopy Create free account
hub / github.com/dolthub/doltgresql / isIgnore

Function isIgnore

server/ast/insert.go:127–132  ·  view source on GitHub ↗

isIgnore returns true if the ON CONFLICT clause provided is equivalent to INSERT IGNORE in GMS

(conflict *tree.OnConflict)

Source from the content-addressed store, hash-verified

125
126// isIgnore returns true if the ON CONFLICT clause provided is equivalent to INSERT IGNORE in GMS
127func isIgnore(conflict *tree.OnConflict) bool {
128 return conflict.ArbiterPredicate == nil &&
129 conflict.Exprs == nil &&
130 conflict.Where == nil &&
131 conflict.DoNothing
132}
133
134// supportedOnConflictClause returns true if the ON CONFLICT clause given can be represented as
135// an ON DUPLICATE KEY UPDATE clause in GMS

Callers 1

nodeInsertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected