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 1abf840 commit ccc5dceCopy full SHA for ccc5dce
test/pqxx_test.cpp
@@ -103,7 +103,7 @@ void test_sparsevec_nnz(pqxx::connection &conn) {
103
tx.exec("INSERT INTO items (sparse_embedding) VALUES ($1)", {embedding});
104
assert(false);
105
} catch (const pqxx::conversion_overrun& e) {
106
- assert(std::strcmp(e.what(), "sparsevec cannot have more than 16000 dimensions") == 0);
+ assert(std::string_view(e.what()) == "sparsevec cannot have more than 16000 dimensions");
107
}
108
109
0 commit comments