Skip to content

Commit a9b07b9

Browse files
authored
fix: make SeekDB version check case-insensitive
Co-authored-by: xxsc0529 <xxsc0529@users.noreply.github.com>
1 parent ef64237 commit a9b07b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyobvector/client/ob_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _is_seekdb(self) -> bool:
110110
with self.engine.connect() as conn:
111111
result = conn.execute(text("SELECT VERSION()"))
112112
version_str = [r[0] for r in result][0]
113-
is_seekdb = "SeekDB" in version_str
113+
is_seekdb = "seekdb" in version_str.lower()
114114
self._is_seekdb_cached = is_seekdb
115115
logger.debug(
116116
f"Version query result: {version_str}, is_seekdb: {is_seekdb}"

0 commit comments

Comments
 (0)