mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-20 23:45:18 +01:00
Prevent sqlite_sequence updates from overwriting last_insert_rowid
This commit is contained in:
@@ -5609,7 +5609,7 @@ pub fn op_insert(
|
||||
let cursor = cursor.as_btree_mut();
|
||||
cursor.root_page()
|
||||
};
|
||||
if root_page != 1 {
|
||||
if root_page != 1 && table_name != "sqlite_sequence"{
|
||||
state.op_insert_state.sub_state = OpInsertSubState::UpdateLastRowid;
|
||||
} else {
|
||||
let schema = program.connection.schema.borrow();
|
||||
|
||||
Reference in New Issue
Block a user