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 e8643c4 commit a25a9ecCopy full SHA for a25a9ec
include/pgvector/pqxx.hpp
@@ -29,7 +29,7 @@ template <> struct string_traits<pgvector::Vector> {
29
30
// TODO don't copy string
31
std::vector<float> result;
32
- std::stringstream ss(std::string(text.substr(1, -2)));
+ std::stringstream ss(std::string(text.substr(1, text.size() - 2)));
33
while (ss.good()) {
34
std::string substr;
35
getline(ss, substr, ',');
@@ -74,7 +74,7 @@ template <> struct string_traits<pgvector::HalfVector> {
74
75
76
77
78
79
80
0 commit comments