Function coord::catalog::migrate::ast_rewrite_type_references_0_6_1[][src]

fn ast_rewrite_type_references_0_6_1(
    stmt: &mut Statement<Raw>
) -> Result<(), Error>
Expand description

Rewrites all built-in type references to have pg_catalog qualification; this is necessary to support resolving all type names to the catalog.

The approach is to prepend pg_catalog to all DataType::Other names that only contain a single element. We do this in the AST and without replanning the CREATE statement because the catalog still contains no items at this point, e.g. attempting to plan any item with a dependency will fail.