Skip to content

Commit 1411240

Browse files
committed
feat: add other input types for bit
1 parent 33e265c commit 1411240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgvector/sqlalchemy/bit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def process(value):
2626
return value
2727
return process
2828
else:
29-
return super().bind_processor(dialect)
29+
return lambda value: Bit._to_db(value)
3030

3131
class comparator_factory(UserDefinedType.Comparator):
3232
def hamming_distance(self, other):

0 commit comments

Comments
 (0)