Skip to content

Commit 5ade8dc

Browse files
committed
Fix sqlite store
1 parent fb01742 commit 5ade8dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zarr/storage.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2781,7 +2781,7 @@ def listdir(self, path=None):
27812781
f"""
27822782
SELECT DISTINCT SUBSTR(m, 0, INSTR(m, "/")) AS l FROM (
27832783
SELECT LTRIM(SUBSTR(k, LENGTH(?) + 1), "/") || "/" AS m
2784-
FROM zarr WHERE k LIKE (? || "{sep}%")
2784+
FROM zarr WHERE k LIKE (? || '{sep}%')
27852785
) ORDER BY l ASC
27862786
""",
27872787
(path, path),
@@ -2806,7 +2806,7 @@ def rmdir(self, path=None):
28062806
path = normalize_storage_path(path)
28072807
if path:
28082808
with self.lock:
2809-
self.cursor.execute('DELETE FROM zarr WHERE k LIKE (? || "/%")', (path,))
2809+
self.cursor.execute("DELETE FROM zarr WHERE k LIKE (? || '/%')", (path,))
28102810
else:
28112811
self.clear()
28122812

0 commit comments

Comments
 (0)