Skip to content

Commit 6042e9f

Browse files
committed
Updated style [skip ci]
1 parent e07ca58 commit 6042e9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pqxx_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void test_stream(pqxx::connection &conn) {
106106
pgvector::Vector embedding({1, 2, 3});
107107
tx.exec("INSERT INTO items (embedding) VALUES ($1)", {embedding});
108108
int count = 0;
109-
for (auto [id, embedding2] : tx.stream<int, pgvector::Vector>("SELECT id, embedding FROM items WHERE embedding IS NOT NULL")) {
109+
for (const auto& [id, embedding2] : tx.stream<int, pgvector::Vector>("SELECT id, embedding FROM items WHERE embedding IS NOT NULL")) {
110110
assert_equal(embedding2, embedding);
111111
count++;
112112
}

0 commit comments

Comments
 (0)