(SqlWriter writer, int leftPrec, int rightPrec)
| 140 | } |
| 141 | |
| 142 | @Override public void unparse(SqlWriter writer, int leftPrec, int rightPrec) { |
| 143 | final SqlWriter.Frame frame = |
| 144 | writer.startList(SqlWriter.FrameTypeEnum.SELECT, "DELETE FROM", ""); |
| 145 | final int opLeft = getOperator().getLeftPrec(); |
| 146 | final int opRight = getOperator().getRightPrec(); |
| 147 | targetTable.unparse(writer, opLeft, opRight); |
| 148 | SqlIdentifier alias = this.alias; |
| 149 | if (alias != null) { |
| 150 | writer.keyword("AS"); |
| 151 | alias.unparse(writer, opLeft, opRight); |
| 152 | } |
| 153 | SqlNode condition = this.condition; |
| 154 | if (condition != null) { |
| 155 | writer.sep("WHERE"); |
| 156 | condition.unparse(writer, opLeft, opRight); |
| 157 | } |
| 158 | writer.endList(frame); |
| 159 | } |
| 160 | |
| 161 | @Override public void validate(SqlValidator validator, SqlValidatorScope scope) { |
| 162 | validator.validateDelete(this); |
nothing calls this directly
no test coverage detected