We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccc5dce commit 7bda624Copy full SHA for 7bda624
1 file changed
include/pgvector/pqxx.hpp
@@ -37,7 +37,7 @@ template <> struct string_traits<pgvector::Vector> {
37
38
// TODO don't copy string
39
std::vector<float> result;
40
- std::stringstream ss(std::string(text.substr(1, text.size() - 2)));
+ std::istringstream ss(std::string(text.substr(1, text.size() - 2)));
41
while (ss.good()) {
42
std::string substr;
43
std::getline(ss, substr, ',');
@@ -82,7 +82,7 @@ template <> struct string_traits<pgvector::HalfVector> {
82
83
84
85
86
87
88
0 commit comments