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 41305de commit 706ec69Copy full SHA for 706ec69
1 file changed
tests/test_psycopg2.py
@@ -28,7 +28,8 @@ def setup_method(self):
28
29
def test_vector(self):
30
embedding = Vector([1.5, 2, 3])
31
- cur.execute('INSERT INTO psycopg2_items (embedding) VALUES (%s), (NULL)', (embedding,))
+ embedding2 = None
32
+ cur.execute('INSERT INTO psycopg2_items (embedding) VALUES (%s), (%s)', (embedding, embedding2))
33
34
cur.execute('SELECT embedding FROM psycopg2_items ORDER BY id')
35
res = cur.fetchall()
0 commit comments