Skip to content

Commit c6d4f1d

Browse files
committed
Fix replication bug (#1012)
fix replicatioon bug
1 parent 94c2ec0 commit c6d4f1d

File tree

1 file changed

+2
-0
lines changed
  • libsql-replication/src/injector

1 file changed

+2
-0
lines changed

libsql-replication/src/injector/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ impl Injector {
163163

164164
fn begin_txn(&mut self) -> Result<(), Error> {
165165
let conn = self.connection.lock();
166+
conn.pragma_update(None, "writable_schema", "true")?;
167+
166168
let mut stmt = conn.prepare_cached("BEGIN IMMEDIATE")?;
167169
stmt.execute(())?;
168170
// we create a dummy table. This table MUST not be persisted, otherwise the replica schema

0 commit comments

Comments
 (0)