mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-04 15:54:23 +01:00
normalize identifier for creating autoindex to prevent e.g. sqlite_autoindextable_2
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user