mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
When processing AddColumn and DropColumn operations, the code looks up tables in transaction_tables.current_tables using the table name stored in the operation. However, transaction_tables.current_tables has tables with their final names (after all renames), while operations store the name at the time they were recorded. In the failing case: 1. DropColumn was recorded with table_name = "stellar_katerina_672" 2. RenameTable changed the name to "captivating_eco_1159" 3. At commit, when processing DropColumn, we looked for "stellar_katerina_672" but the table was now named "captivating_eco_1159" The fix: Build a mapping from old names → final names by scanning all RenameTable operations first, then use the final name when looking up in transaction_tables.current_tables. |
||
|---|---|---|
| .. | ||
| memory | ||
| bugbase.rs | ||
| cli.rs | ||
| clock.rs | ||
| differential.rs | ||
| doublecheck.rs | ||
| env.rs | ||
| execution.rs | ||
| file.rs | ||
| io.rs | ||
| mod.rs | ||