| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-04-29 05:05:27 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-04-29 05:05:27 UTC |
| parent | 64859f4cd8f82387789172d4fe0aade365a32b48 |
| borogove/persistence/Sqlite.hx | +1 | -1 |
diff --git a/borogove/persistence/Sqlite.hx b/borogove/persistence/Sqlite.hx index fd8e71b..2d04722 100644 --- a/borogove/persistence/Sqlite.hx +++ b/borogove/persistence/Sqlite.hx @@ -215,7 +215,7 @@ class Sqlite implements Persistence implements KeyValueStore { toInsert = []; } } - return promise.then(_ -> exec(toInsert)); + return promise.then(_ -> toInsert.length < 1 ? null : exec(toInsert)); }).then(_ -> exec(["PRAGMA user_version = 8"]) );