Skip to main content

expression_has_parameters

Function expression_has_parameters 

Source
pub fn expression_has_parameters(expr: &Expression) -> bool
Expand description

Check if an expression contains any Parameter nodes ($1, $2, etc.) Parameterized queries cannot be semantically cached because the cache stores results tied to specific parameter values, but the AST only contains parameter indices, not values.