Skip to content

Commit 706ec69

Browse files
committed
Improved test [skip ci]
1 parent 41305de commit 706ec69

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_psycopg2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ def setup_method(self):
2828

2929
def test_vector(self):
3030
embedding = Vector([1.5, 2, 3])
31-
cur.execute('INSERT INTO psycopg2_items (embedding) VALUES (%s), (NULL)', (embedding,))
31+
embedding2 = None
32+
cur.execute('INSERT INTO psycopg2_items (embedding) VALUES (%s), (%s)', (embedding, embedding2))
3233

3334
cur.execute('SELECT embedding FROM psycopg2_items ORDER BY id')
3435
res = cur.fetchall()

0 commit comments

Comments
 (0)