コード例 #1
0
 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);
   writer.endFunCall(frame);
 }
コード例 #2
0
 public void unparse(SqlWriter writer, SqlNode[] operands, int leftPrec, int rightPrec) {
   final SqlWriter.Frame frame = writer.startFunCall(getName());
   operands[0].unparse(writer, leftPrec, rightPrec);
   writer.sep("PLACING");
   operands[1].unparse(writer, leftPrec, rightPrec);
   writer.sep("FROM");
   operands[2].unparse(writer, leftPrec, rightPrec);
   if (4 == operands.length) {
     writer.sep("FOR");
     operands[3].unparse(writer, leftPrec, rightPrec);
   }
   writer.endFunCall(frame);
 }