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

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

Rewrites all references of pg_catalog.char to pg_catalog.text, which matches the previous char implementation’s semantics.

Note that the previous char “implementation” was simply an alias to text. However, the new char semantics mirrors Postgres’ bpchar type, which char is now essentially an alias of.

This approach is safe because all previous references to char were actually text references. All char references going forward will properly behave as bpchar references.