Skip to content

Commit 29fe7f1

Browse files
committed
Switched to write_values
1 parent a110db7 commit 29fe7f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/pqxx_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ void test_stream_to(pqxx::connection &conn) {
116116

117117
pqxx::nontransaction tx(conn);
118118
auto stream = pqxx::stream_to::table(tx, {"items"}, {"embedding"});
119-
stream << pgvector::Vector({1, 2, 3});
120-
stream << pgvector::Vector({4, 5, 6});
119+
stream.write_values(pgvector::Vector({1, 2, 3}));
120+
stream.write_values(pgvector::Vector({4, 5, 6}));
121121
stream.complete();
122122
pqxx::result res = tx.exec("SELECT embedding FROM items ORDER BY id");
123123
assert(res[0][0].as<std::string>() == "[1,2,3]");

0 commit comments

Comments
 (0)