isIgnore returns true if the ON CONFLICT clause provided is equivalent to INSERT IGNORE in GMS
(conflict *tree.OnConflict)
| 125 | |
| 126 | // isIgnore returns true if the ON CONFLICT clause provided is equivalent to INSERT IGNORE in GMS |
| 127 | func 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 |