normalize identifier for creating autoindex to prevent e.g. sqlite_autoindextable_2

This commit is contained in:
PThorpe92
2025-09-17 13:25:33 -04:00
parent 4e71524e42
commit dde8a49f4e

View File

@@ -149,7 +149,7 @@ pub fn translate_create_table(
let index_name = format!(
"{}{}_{}",
PRIMARY_KEY_AUTOMATIC_INDEX_NAME_PREFIX,
tbl_name.name.as_str(),
normalize_ident(tbl_name.name.as_str()),
idx + 1
);
emit_schema_entry(