pub fn create_stmt_rename_refs(
create_stmt: &mut Statement<Raw>,
from_name: FullItemName,
to_item_name: String,
) -> Result<(), String>Expand description
Updates all references of from_name in create_stmt to to_name or
errors if request is ambiguous.
Requests are considered ambiguous if create_stmt is a
Statement::CreateView, and any of the following apply to its query:
to_name.itemis used as anIdentinquery.from_name.itemdoes not unambiguously refer to an item in the query, e.g. it is also used as a schema, or not all references to the item are sufficiently qualified.to_name.itemdoes not unambiguously refer to an item in the query after the rename. Right now, given the first condition, this is just a coherence check, but will be more meaningful once the first restriction is lifted.