We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45cc2e1 commit 3d14b22Copy full SHA for 3d14b22
pgvector/sqlalchemy/bit.py
@@ -26,8 +26,10 @@ def process(value):
26
27
def result_processor(self, dialect, coltype):
28
def process(value):
29
- if value and isinstance(dialect, PGDialect_asyncpg):
30
- return value.as_string()
+ if value is None: return None
+ else:
31
+ if isinstance(dialect, PGDialect_asyncpg):
32
+ return value.as_string()
33
return Bit._from_db(value).to_text()
34
return process
35
0 commit comments