Example #1
0
  public boolean visit(SQLCharExpr x) {
    if (x instanceof MySqlCharExpr) {
      print(x.toString());
    } else if ((x.getText() == null) || (x.getText().length() == 0)) {
      print("NULL");
    } else {
      print("'");
      print(x.getText().replaceAll("'", "''"));
      print("'");
    }

    return false;
  }
  public boolean visit(SQLCharExpr x) {
    if (Boolean.TRUE.equals(x.getAttribute(ParameterizedOutputVisitorUtils.ATTR_PARAMS_SKIP))) {
      return super.visit(x);
    }

    print('?');
    return false;
  }
Example #3
0
 public static boolean visit(SQLEvalVisitor visitor, SQLCharExpr x) {
   x.putAttribute(EVAL_VALUE, x.getText());
   return true;
 }