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 a110db7 commit 29fe7f1Copy full SHA for 29fe7f1
test/pqxx_test.cpp
@@ -116,8 +116,8 @@ void test_stream_to(pqxx::connection &conn) {
116
117
pqxx::nontransaction tx(conn);
118
auto stream = pqxx::stream_to::table(tx, {"items"}, {"embedding"});
119
- stream << pgvector::Vector({1, 2, 3});
120
- stream << pgvector::Vector({4, 5, 6});
+ stream.write_values(pgvector::Vector({1, 2, 3}));
+ stream.write_values(pgvector::Vector({4, 5, 6}));
121
stream.complete();
122
pqxx::result res = tx.exec("SELECT embedding FROM items ORDER BY id");
123
assert(res[0][0].as<std::string>() == "[1,2,3]");
0 commit comments