Skip to main content

analyze_for_statement_reuse

Function analyze_for_statement_reuse 

Source
pub fn analyze_for_statement_reuse(
    context: &StatementAnalysisContext<'_>,
    plan: UnifiedPlan,
    params: &[SQLParam],
) -> Result<(UnifiedPlan, Option<AnalyzedStatement>), SQLError>
Expand description

Analyze under the current caller’s scope, then retain only inputs whose conversion lifetime spans ordinary messages. A parameter whose shape cannot be captured disables reuse without changing the original analysis’s result or diagnostic order.