Returns whether this is an UPSERT statement. In SQL, this is represented using the UPSERT keyword rather than INSERT; in the abstract syntax tree, an UPSERT is indicated by the presence of a SqlInsertKeyword#UPSERT keyword.
()
| 88 | * {@code INSERT}; in the abstract syntax tree, an UPSERT is indicated by the |
| 89 | * presence of a {@link SqlInsertKeyword#UPSERT} keyword. */ |
| 90 | public final boolean isUpsert() { |
| 91 | return getModifierNode(SqlInsertKeyword.UPSERT) != null; |
| 92 | } |
| 93 | |
| 94 | @SuppressWarnings("assignment.type.incompatible") |
| 95 | @Override public void setOperand(int i, @Nullable SqlNode operand) { |
no test coverage detected