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 8a3dadb commit 41305deCopy full SHA for 41305de
1 file changed
tests/test_psycopg.py
@@ -25,7 +25,8 @@ def setup_method(self):
25
26
def test_vector(self):
27
embedding = Vector([1.5, 2, 3])
28
- conn.execute('INSERT INTO psycopg_items (embedding) VALUES (%s), (NULL)', (embedding,))
+ embedding2 = None
29
+ conn.execute('INSERT INTO psycopg_items (embedding) VALUES (%s), (%s)', (embedding, embedding2))
30
31
res = conn.execute('SELECT embedding FROM psycopg_items ORDER BY id').fetchall()
32
assert res[0][0] == embedding
0 commit comments