}
public ViewDefinition(StatementNode parsed, SQLParserContext parserContext)
throws StandardException {
if (parsed.getNodeType() != NodeTypes.CREATE_VIEW_NODE) {
throw new StandardException("Parsed statement was not a view");
}
definition = (CreateViewNode)parsed;
subquery = (FromSubquery)
parserContext.getNodeFactory().getNode(NodeTypes.FROM_SUBQUERY,
definition.getParsedQueryExpression(),