From 80a435827207f7d067fc7754b756920c9b8e31ab Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Mon, 8 Sep 2025 12:55:29 +0300 Subject: [PATCH] cli: Fix dump compatibility in "PRAGMA foreign_keys" SQLite emits a semicolon after "PRAGMA foreign_keys=OFF" so let's do th same. --- cli/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/app.rs b/cli/app.rs index c5cb105df..f72e2a6c6 100644 --- a/cli/app.rs +++ b/cli/app.rs @@ -1373,7 +1373,7 @@ impl Limbo { // FIXME: we don't yet support PRAGMA foreign_keys=OFF internally, // so for now this hacky boolean that decides not to emit it when cloning if fk { - writeln!(out, "PRAGMA foreign_keys=OFF")?; + writeln!(out, "PRAGMA foreign_keys=OFF;")?; } writeln!(out, "BEGIN TRANSACTION;")?; // FIXME: At this point, SQLite executes the following: