jj_consume_token(EQUALS_OPERATOR);
jj_consume_token(CALL);
resultSetNode = rowValueConstructor(null);
// validate that we have something that is an appropriate call statement
ResultColumnList rcl = resultSetNode.getResultColumns();
// we can have only 1 return value/column
if (rcl == null || rcl.size() > 1)
{
{if (true) throw StandardException.newException(SQLState.LANG_INVALID_CALL_STATEMENT);}
}
// we must have a method call node
value = ((ResultColumn) rcl.elementAt(0)).getExpression();
if (! (value instanceof JavaToSQLValueNode) ||
! (((JavaToSQLValueNode) value).getJavaValueNode() instanceof MethodCallNode))
{
{if (true) throw StandardException.newException(SQLState.LANG_INVALID_CALL_STATEMENT);}
}