Skip to main content

validate_sql_function_body

Function validate_sql_function_body 

Source
pub fn validate_sql_function_body(
    context: &SQLBodyValidationContext<'_>,
    def: &CreateFunction,
    body: &CompiledFunctionBody,
    check_result: bool,
) -> Result<(), SQLError>
Expand description

Validate a compiled SQL body as CREATE FUNCTION does: analyze each statement in order against the catalog, without running any of them, and when check_result holds, check the final statement against the declared result.