Deveel.Data.Sql.Statements.StatementVisitor.VisitCreateFunction C# (CSharp) Method

VisitCreateFunction() protected method

protected VisitCreateFunction ( CreateFunctionStatement statement ) : SqlStatement
statement CreateFunctionStatement
return SqlStatement
        protected virtual SqlStatement VisitCreateFunction(CreateFunctionStatement statement)
        {
            var body = statement.Body;
            if (body != null)
                // TODO: Maybe the body should be generic to support this model
                body = (PlSqlBlockStatement) VisitStatement(body);

            return new CreateFunctionStatement(statement.FunctionName, statement.ReturnType, statement.Parameters, body) {
                ReplaceIfExists = statement.ReplaceIfExists
            };
        }