pub fn check_statement_oid_alias_constants<C: OidAliasInput + ?Sized>(
catalog: &C,
plan: &UnifiedPlan,
) -> Result<(), SQLError>Expand description
The alias input functions at analysis for a statement that runs at once: every reg* cast of a string literal, nested ones included, must name an object before the statement runs, as parse analysis reads the constant before planning and execution. The plan keeps the written names, which the cast resolves again when it is evaluated, since a statement’s text is analyzed anew each time it runs.