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 057806e commit 57b6a61Copy full SHA for 57b6a61
tests/test_asyncpg.py
@@ -59,10 +59,11 @@ async def test_bit(self):
59
60
await register_vector(conn)
61
62
- embedding = asyncpg.BitString.from_int(5, length=3)
+ embedding = asyncpg.BitString('101')
63
await conn.execute("INSERT INTO asyncpg_items (embedding) VALUES ($1), (NULL)", embedding)
64
65
res = await conn.fetch("SELECT * FROM asyncpg_items ORDER BY id")
66
+ assert res[0]['embedding'].as_string() == '101'
67
assert res[0]['embedding'].to_int() == 5
68
assert res[1]['embedding'] is None
69
0 commit comments