Package org.apache.derby.impl.sql.compile

Examples of org.apache.derby.impl.sql.compile.ParseException


                                                getContextManager());}
      break;
    default:
      jj_la1[119] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }
View Full Code Here


                {if (true) return DateTimeDataValue.SECOND_FIELD;}
      break;
    default:
      jj_la1[121] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }
View Full Code Here

        lowerTok = jj_consume_token(LOWER);
        break;
      default:
        jj_la1[123] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
      jj_consume_token(LEFT_PAREN);
      value = additiveExpression(null,0,false);
      jj_consume_token(RIGHT_PAREN);
                {if (true) return (ValueNode) nodeFactory.getNode(
                                        C_NodeTypes.SIMPLE_STRING_OPERATOR_NODE,
                                        value,
                                        (upperTok != null) ? "upper" : "lower",
                                        getContextManager());}
      break;
    case LCASE:
    case UCASE:
      switch (jj_nt.kind) {
      case UCASE:
        upperTok = jj_consume_token(UCASE);
        break;
      case LCASE:
        lowerTok = jj_consume_token(LCASE);
        break;
      default:
        jj_la1[124] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
      jj_consume_token(LEFT_PAREN);
      value = additiveExpression(null,0,false);
      jj_consume_token(RIGHT_PAREN);
                {if (true) return (ValueNode) nodeFactory.getNode(
                                        C_NodeTypes.SIMPLE_STRING_OPERATOR_NODE,
                                        value,
                                        (upperTok != null) ? "upper" : "lower",
                                        getContextManager());}
      break;
    case LTRIM:
    case RTRIM:
      value = trimFunction();
                {if (true) return value;}
      break;
    case LOCATE:
      jj_consume_token(LOCATE);
      jj_consume_token(LEFT_PAREN);
      str1 = additiveExpression(null,0,false);
      jj_consume_token(COMMA);
      str2 = additiveExpression(null,0,false);
      switch (jj_nt.kind) {
      case COMMA:
        jj_consume_token(COMMA);
        value = additiveExpression(null,0,false);
        break;
      default:
        jj_la1[125] = jj_gen;
        ;
      }
      jj_consume_token(RIGHT_PAREN);
                // if start is missing, start is equal to 1
        {if (true) return (ValueNode) nodeFactory.getNode(
                            C_NodeTypes.LOCATE_FUNCTION_NODE,
                            str1,
                            str2,
                            (value == null) ? getNodeFactory().getNode(
                                        C_NodeTypes.INT_CONSTANT_NODE,
                                        ReuseFactory.getInteger(1),
                                        getContextManager() )
                                                                                        : value,
                            ReuseFactory.getInteger(TernaryOperatorNode.LOCATE),
                            null,
                            getContextManager());}
      break;
    default:
      jj_la1[126] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }
View Full Code Here

                {if (true) return ReuseFactory.getInteger(StringDataValue.LEADING);}
      break;
    default:
      jj_la1[127] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }
View Full Code Here

        jj_consume_token(SQLID);
        break;
      default:
        jj_la1[128] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
                {if (true) return (ValueNode) nodeFactory.getNode(
                                                C_NodeTypes.CURRENT_SCHEMA_NODE,
                                                getContextManager());}
    } else if (getToken(2).kind == ISOLATION) {
      jj_consume_token(CURRENT);
      jj_consume_token(ISOLATION);
                {if (true) return (ValueNode) nodeFactory.getNode(
                                                C_NodeTypes.CURRENT_ISOLATION_NODE,
                                                getContextManager());}
    } else {
      switch (jj_nt.kind) {
      case CASE:
      case CURRENT_USER:
      case FALSE:
      case NULLIF:
      case SESSION_USER:
      case TRUE:
      case USER:
      case LEFT_BRACE:
      case PLUS_SIGN:
      case MINUS_SIGN:
      case QUESTION_MARK:
      case EXACT_NUMERIC:
      case STRING:
      case HEX_STRING:
      case APPROXIMATE_NUMERIC:
        /* Omitted "case_expression" */
                value = valueSpecification();
                {if (true) return value;}
        break;
      default:
        jj_la1[129] = jj_gen;
        if (newInvocationFollows(1)) {
          value = newInvocation();
                {if (true) return value;}
        } else if (aggregateFollows()) {
          value = aggregateNode();
                {if (true) return value;}
        } else if (miscBuiltinFollows()) {
          value = miscBuiltins();
                {if (true) return value;}
        } else {
          switch (jj_nt.kind) {
          case BINARY:
          case COALESCE:
          case COUNT:
          case D:
          case MODULE:
          case T:
          case TS:
          case VALUE:
          case VARBINARY:
          case ABS:
          case ABSVAL:
          case ACTION:
          case ALWAYS:
          case BLOB:
          case C:
          case CALLED:
          case CLOB:
          case COBOL:
          case COMMITTED:
          case CONCAT:
          case CONTAINS:
          case DATA:
          case DATE:
          case DAY:
          case DYNAMIC:
          case FORTRAN:
          case GENERATED:
          case IDENTITY_VAL_LOCAL:
          case INCREMENT:
          case INITIAL:
          case INTERVAL:
          case LANGUAGE:
          case LARGE:
          case LENGTH:
          case LEVEL:
          case LOCKS:
          case LOCKSIZE:
          case LOGGED:
          case MOD:
          case MODIFIES:
          case MODIFY:
          case MONTH:
          case _MORE:
          case MUMPS:
          case NAME:
          case NCLOB:
          case NULLABLE:
          case NUMBER:
          case OBJECT:
          case PASCAL:
          case PLI:
          case PRECISION:
          case RELEASE:
          case REPEATABLE:
          case RESTART:
          case RETURNS:
          case ROW:
          case SAVEPOINT:
          case SCALE:
          case SERIALIZABLE:
          case SQL_TSI_FRAC_SECOND:
          case SQL_TSI_SECOND:
          case SQL_TSI_MINUTE:
          case SQL_TSI_HOUR:
          case SQL_TSI_DAY:
          case SQL_TSI_WEEK:
          case SQL_TSI_MONTH:
          case SQL_TSI_QUARTER:
          case SQL_TSI_YEAR:
          case START:
          case STATEMENT:
          case SYNONYM:
          case THEN:
          case TIME:
          case TIMESTAMP:
          case TIMESTAMPADD:
          case TIMESTAMPDIFF:
          case TRUNCATE:
          case TYPE:
          case UNCOMMITTED:
          case USAGE:
          case WHEN:
          case CURDATE:
          case CURTIME:
          case DATABASE:
          case LONG:
          case AFTER:
          case BEFORE:
          case CLASS:
          case COMPRESS:
          case CONTENT:
          case CS:
          case DB2SQL:
          case DIRTY:
          case DOCUMENT:
          case EACH:
          case EMPTY:
          case EXCLUSIVE:
          case FN:
          case INDEX:
          case JAVA:
          case LCASE:
          case LOCATE:
          case LOCK:
          case MESSAGE_LOCALE:
          case METHOD:
          case MODE:
          case NEW:
          case NEW_TABLE:
          case OJ:
          case OFF:
          case OLD:
          case OLD_TABLE:
          case PARAMETER:
          case PASSING:
          case PROPERTIES:
          case READS:
          case REF:
          case REFERENCING:
          case RENAME:
          case RESET:
          case RESULT:
          case RETAIN:
          case RETURNING:
          case RR:
          case RS:
          case SEQUENCE:
          case SEQUENTIAL:
          case SETS:
          case SHARE:
          case SQLID:
          case SPECIFIC:
          case SQRT:
          case STABILITY:
          case STRIP:
          case STYLE:
          case TRIGGER:
          case UCASE:
          case UR:
          case WHITESPACE:
          case IDENTIFIER:
          case DELIMITED_IDENTIFIER:
            value = columnReference();
                {if (true) return value;}
            break;
          case LEFT_PAREN:
            jj_consume_token(LEFT_PAREN);
            if (getToken(1).kind == SELECT || getToken(1).kind == VALUES) {
              value = subquery(SubqueryNode.EXPRESSION_SUBQUERY, null);
            } else if (inSelectClause) {
              value = additiveExpression(null,0, inSelectClause);
            } else if (jj_2_25(1)) {
              //following will happen if we are not coming here for select/values clause
                              value = valueExpression(inSelectClause);
            } else {
              jj_consume_token(-1);
              throw new ParseException();
            }
            jj_consume_token(RIGHT_PAREN);
                {if (true) return value;}
            break;
          case CAST:
            value = castSpecification();
                {if (true) return value;}
            break;
          default:
            jj_la1[130] = jj_gen;
            jj_consume_token(-1);
            throw new ParseException();
          }
        }
      }
    }
    throw new Error("Missing return statement in function");
View Full Code Here

                {if (true) return value;}
        break;
      default:
        jj_la1[131] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
    throw new Error("Missing return statement in function");
  }
View Full Code Here

                {if (true) return value;}
          break;
        default:
          jj_la1[133] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    }
    throw new Error("Missing return statement in function");
  }
View Full Code Here

                {if (true) return value;}
          break;
        default:
          jj_la1[136] = jj_gen;
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    }
    throw new Error("Missing return statement in function");
  }
View Full Code Here

                {if (true) return value;}
      break;
    default:
      jj_la1[137] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }
View Full Code Here

                {if (true) return true;}
        break;
      default:
        jj_la1[138] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
    throw new Error("Missing return statement in function");
  }
View Full Code Here

TOP

Related Classes of org.apache.derby.impl.sql.compile.ParseException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.