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

VisitCreateProcedure() protected method

protected VisitCreateProcedure ( CreateProcedureStatement statement ) : SqlStatement
statement CreateProcedureStatement
return SqlStatement
        protected virtual SqlStatement VisitCreateProcedure(CreateProcedureStatement 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 CreateProcedureStatement(statement.ProcedureName, statement.Parameters, body) {
                ReplaceIfExists = statement.ReplaceIfExists
            };
        }