Skip to main content

function_sqlbody

Function function_sqlbody 

Source
pub fn function_sqlbody(env: &dyn Env, oid: u32) -> Result<Option<SqlBody>>
Expand description

The body in SQL of the function with the OID, as interpret_AS_clause analyzes it for prosqlbody: the arguments have their declared types, and the value of RETURN and the columns of the queries do not take a cast to the result type. None when the catalog has no function in SQL with the OID, or when the function has its body in a string.

ยงErrors

The errors of the analysis of the body.