(SqlWriter writer, int leftPrec, int rightPrec)
| 151 | } |
| 152 | |
| 153 | @Override public void unparse(SqlWriter writer, int leftPrec, int rightPrec) { |
| 154 | final SqlWriter.Frame frame = writer.startList(SqlWriter.FrameTypeEnum.SELECT); |
| 155 | writer.sep(isUpsert() ? "UPSERT INTO" : "INSERT INTO"); |
| 156 | final int opLeft = getOperator().getLeftPrec(); |
| 157 | final int opRight = getOperator().getRightPrec(); |
| 158 | targetTable.unparse(writer, opLeft, opRight); |
| 159 | if (columnList != null) { |
| 160 | columnList.unparse(writer, opLeft, opRight); |
| 161 | } |
| 162 | writer.newlineAndIndent(); |
| 163 | source.unparse(writer, 0, 0); |
| 164 | writer.endList(frame); |
| 165 | } |
| 166 | |
| 167 | @Override public void validate(SqlValidator validator, SqlValidatorScope scope) { |
| 168 | validator.validateInsert(this); |
nothing calls this directly
no test coverage detected