Skip to content

Commit d3f5414

Browse files
committed
Updated style [skip ci]
1 parent 6d3c5d3 commit d3f5414

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/pqxx_test.cpp

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

0 commit comments

Comments
 (0)