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 936da20 commit 5f3aff7Copy full SHA for 5f3aff7
test/pqxx_test.cpp
@@ -241,6 +241,14 @@ void test_sparsevec_from_string() {
241
assert(std::string_view(e.what()) == "Malformed sparsevec literal");
242
}
243
244
+ // TODO change to pqxx::conversion_error
245
+ try {
246
+ auto unused = pqxx::from_string<pgvector::SparseVector>("{ }/");
247
+ assert(false);
248
+ } catch (const std::invalid_argument& e) {
249
+ assert(true);
250
+ }
251
+
252
try {
253
auto unused = pqxx::from_string<pgvector::SparseVector>("{}/-1");
254
assert(false);
0 commit comments