jj_consume_token(NE2); if (!this.conformance.isBangEqualAllowed()) { {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());}
RESOURCE.identifierTooLong(id, this.identifierMaxLength));}
} catch (NumberFormatException ex) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.illegalBinaryString(token.image));} } catch (NumberFormatException ex) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.illegalBinaryString(token.image));} } catch (java.nio.charset.UnsupportedCharsetException e) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.unknownCharacterSet(charSet));} } catch (java.nio.charset.UnsupportedCharsetException e) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.unknownCharacterSet(charSet));} if (unicodeEscapeChar == 0) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.unicodeEscapeUnexpected());}
RESOURCE.illegalRowExpression());} RESOURCE.illegalMinusDate());} } else {
void checkNonQueryExpression(ExprContext exprContext) throws ParseException { switch (exprContext) { case ACCEPT_QUERY: throw SqlUtil.newContextException(getPos(), RESOURCE.illegalNonQueryExpression()); } }
void checkQueryExpression(ExprContext exprContext) throws ParseException { switch (exprContext) { case ACCEPT_NON_QUERY: case ACCEPT_SUB_QUERY: case ACCEPT_CURSOR: throw SqlUtil.newContextException(getPos(), RESOURCE.illegalQueryExpression()); } }
/** * Parses a CURSOR(query) expression. The parser allows these * anywhere, but the validator restricts them to appear only as * arguments to table functions. */ final public SqlNode CursorExpression(ExprContext exprContext) throws ParseException { final SqlNode e; final Span s; jj_consume_token(CURSOR); s = span(); if (exprContext != ExprContext.ACCEPT_ALL && exprContext != ExprContext.ACCEPT_CURSOR) { {if (true) throw SqlUtil.newContextException(s.end(this), RESOURCE.illegalCursorExpression());} } e = Expression(ExprContext.ACCEPT_QUERY); {if (true) return SqlStdOperatorTable.CURSOR.createCall(s.end(e), e);} throw new Error("Missing return statement in function"); }
{if (true) throw SqlUtil.newContextException(s.pos(), RESOURCE.illegalOrderBy());}
e2 = TableRef2(true); if (!this.conformance.isApplyAllowed()) { {if (true) throw new ParseException(RESOURCE.applyNotAllowed().str());} e2 = TableRef2(true); if (!this.conformance.isApplyAllowed()) { {if (true) throw new ParseException(RESOURCE.applyNotAllowed().str());}
if (null == flag && null == trimChars) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.illegalFromEmpty());}
jj_consume_token(NE2); if (!this.conformance.isBangEqualAllowed()) { {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());} jj_consume_token(PERCENT_REMAINDER); if (!this.conformance.isPercentRemainderAllowed()) { {if (true) throw new ParseException(RESOURCE.percentRemainderNotAllowed().str());}
RESOURCE.illegalRowExpression());} RESOURCE.illegalMinusDate());} } else {
void checkNonQueryExpression(ExprContext exprContext) throws ParseException { switch (exprContext) { case ACCEPT_QUERY: throw SqlUtil.newContextException(getPos(), RESOURCE.illegalNonQueryExpression()); } }
void checkQueryExpression(ExprContext exprContext) throws ParseException { switch (exprContext) { case ACCEPT_NON_QUERY: case ACCEPT_SUB_QUERY: case ACCEPT_CURSOR: throw SqlUtil.newContextException(getPos(), RESOURCE.illegalQueryExpression()); } }
/** * Parses a CURSOR(query) expression. The parser allows these * anywhere, but the validator restricts them to appear only as * arguments to table functions. */ final public SqlNode CursorExpression(ExprContext exprContext) throws ParseException { final SqlNode e; final Span s; jj_consume_token(CURSOR); s = span(); if (exprContext != ExprContext.ACCEPT_ALL && exprContext != ExprContext.ACCEPT_CURSOR) { {if (true) throw SqlUtil.newContextException(s.end(this), RESOURCE.illegalCursorExpression());} } e = Expression(ExprContext.ACCEPT_QUERY); {if (true) return SqlStdOperatorTable.CURSOR.createCall(s.end(e), e);} throw new Error("Missing return statement in function"); }
{if (true) throw SqlUtil.newContextException(s.pos(), RESOURCE.illegalOrderBy());}
e2 = TableRef2(true); if (!this.conformance.isApplyAllowed()) { {if (true) throw new ParseException(RESOURCE.applyNotAllowed().str());} e2 = TableRef2(true); if (!this.conformance.isApplyAllowed()) { {if (true) throw new ParseException(RESOURCE.applyNotAllowed().str());}
if (null == flag && null == trimChars) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.illegalFromEmpty());}
jj_consume_token(NE2); if (!this.conformance.isBangEqualAllowed()) { {if (true) throw new ParseException(RESOURCE.bangEqualNotAllowed().str());} jj_consume_token(PERCENT_REMAINDER); if (!this.conformance.isPercentRemainderAllowed()) { {if (true) throw new ParseException(RESOURCE.percentRemainderNotAllowed().str());}
} catch (NumberFormatException ex) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.illegalBinaryString(token.image));} } catch (NumberFormatException ex) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.illegalBinaryString(token.image));} } catch (java.nio.charset.UnsupportedCharsetException e) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.unknownCharacterSet(charSet));} } catch (java.nio.charset.UnsupportedCharsetException e) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.unknownCharacterSet(charSet));} if (unicodeEscapeChar == 0) { {if (true) throw SqlUtil.newContextException(getPos(), RESOURCE.unicodeEscapeUnexpected());}