public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, 0, 0); writer.endFunCall(frame); } }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, 0, 0); writer.endFunCall(frame); } }
@Override public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall("TRANSLATE"); for (SqlNode sqlNode : call.getOperandList()) { writer.sep(","); sqlNode.unparse(writer, leftPrec, rightPrec); } writer.endFunCall(frame); }
@Override public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall("TRANSLATE"); for (SqlNode sqlNode : call.getOperandList()) { writer.sep(","); sqlNode.unparse(writer, leftPrec, rightPrec); } writer.endFunCall(frame); }
@Override public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { assert call.operandCount() == 1; final SqlWriter.Frame frame = writer.startFunCall("JSON_ARRAYAGG"); call.operand(0).unparse(writer, leftPrec, rightPrec); writer.keyword(nullClause.sql); writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, leftPrec, rightPrec); writer.sep("USING"); call.operand(1).unparse(writer, leftPrec, rightPrec); writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, 0, 0); writer.sep("FROM"); call.operand(1).unparse(writer, 0, 0); writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, 0, 0); writer.sep("FROM"); call.operand(1).unparse(writer, 0, 0); writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, leftPrec, rightPrec); writer.sep("USING"); call.operand(1).unparse(writer, leftPrec, rightPrec); writer.endFunCall(frame); }
@Override public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, 0, 0); if (call.operandCount() == 2) { call.operand(1).unparse(writer, 0, 0); writer.keyword("ON ERROR"); } writer.endFunCall(frame); } }
@Override public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { assert call.operandCount() == 2; final SqlWriter.Frame frame = writer.startFunCall("JSON_OBJECTAGG"); writer.keyword("KEY"); call.operand(0).unparse(writer, leftPrec, rightPrec); writer.keyword("VALUE"); call.operand(1).unparse(writer, leftPrec, rightPrec); writer.keyword(nullClause.sql); writer.endFunCall(frame); }
@Override public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); if (call.operandCount() == 2) { call.operand(0).unparse(writer, 0, 100); writer.sep("TO"); call.operand(1).unparse(writer, 100, 0); } else { call.operand(0).unparse(writer, 0, 0); } writer.endFunCall(frame); }
@Override public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); if (call.operandCount() == 2) { call.operand(0).unparse(writer, 0, 100); writer.sep("TO"); call.operand(1).unparse(writer, 100, 0); } else { call.operand(0).unparse(writer, 0, 0); } writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); assert call.operand(0) instanceof SqlLiteral : call.operand(0); call.operand(0).unparse(writer, leftPrec, rightPrec); call.operand(1).unparse(writer, leftPrec, rightPrec); writer.sep("FROM"); call.operand(2).unparse(writer, leftPrec, rightPrec); writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { assert call.operandCount() == 2; final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, 0, 0); writer.sep("AS"); if (call.operand(1) instanceof SqlIntervalQualifier) { writer.sep("INTERVAL"); } call.operand(1).unparse(writer, 0, 0); writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { assert call.operandCount() == 2; final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, 0, 0); writer.sep("AS"); if (call.operand(1) instanceof SqlIntervalQualifier) { writer.sep("INTERVAL"); } call.operand(1).unparse(writer, 0, 0); writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); assert call.operand(0) instanceof SqlLiteral : call.operand(0); call.operand(0).unparse(writer, leftPrec, rightPrec); call.operand(1).unparse(writer, leftPrec, rightPrec); writer.sep("FROM"); call.operand(2).unparse(writer, leftPrec, rightPrec); writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, leftPrec, rightPrec); writer.sep("FROM"); call.operand(1).unparse(writer, leftPrec, rightPrec); if (3 == call.operandCount()) { writer.sep("FOR"); call.operand(2).unparse(writer, leftPrec, rightPrec); } writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, leftPrec, rightPrec); writer.sep("FROM"); call.operand(1).unparse(writer, leftPrec, rightPrec); if (3 == call.operandCount()) { writer.sep("FOR"); call.operand(2).unparse(writer, leftPrec, rightPrec); } writer.endFunCall(frame); }
public void unparse( SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startFunCall(getName()); call.operand(0).unparse(writer, leftPrec, rightPrec); writer.sep("IN"); call.operand(1).unparse(writer, leftPrec, rightPrec); if (3 == call.operandCount()) { writer.sep("FROM"); call.operand(2).unparse(writer, leftPrec, rightPrec); } writer.endFunCall(frame); }