From cff6cdff5f9ebb59578d706df1e571f1d0583e67 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Thu, 6 Apr 2023 12:50:21 +0300 Subject: [PATCH] sqlite: __delitem__: use 0 instead of False Leftover from https://github.com/iterative/sqltrie/issues/8 --- src/sqltrie/sqlite/sqlite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqltrie/sqlite/sqlite.py b/src/sqltrie/sqlite/sqlite.py index ba8ad26..22efb7f 100644 --- a/src/sqltrie/sqlite/sqlite.py +++ b/src/sqltrie/sqlite/sqlite.py @@ -213,7 +213,7 @@ def __delitem__(self, key): node = self._get_node(key) self._conn.execute( """ - UPDATE nodes SET has_value = False, value = NULL WHERE id == ? + UPDATE nodes SET has_value = 0, value = NULL WHERE id == ? """, (node["id"],), )