Skip to content

Commit

Permalink
fix: Fixed an issue with SQLite lack of case_sensitive_like for FastA…
Browse files Browse the repository at this point in the history
…PI Server thread pool connections
  • Loading branch information
tazarov committed Feb 9, 2024
1 parent 316db9b commit 98fdfc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chromadb/db/impl/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def __init__(self, conn_pool: Pool, stack: local):
@override
def __enter__(self) -> base.Cursor:
if len(self._tx_stack.stack) == 0:
self._conn.execute("PRAGMA case_sensitive_like = ON")
self._conn.execute("BEGIN;")
self._tx_stack.stack.append(self)
return self._conn.cursor() # type: ignore
Expand Down

0 comments on commit 98fdfc1

Please sign in to comment.