fix(MainDb): read is blacklisted by soci, use read_from_start instead on Windows

This commit is contained in:
Ronan Abhamon 2018-05-23 10:57:20 +02:00
parent 82f1950551
commit 61b927afc2

View file

@ -91,7 +91,7 @@ static inline vector<char> blobToVector (soci::blob &in) {
if (!len)
return vector<char>();
vector<char> out(len);
in.read(0, &out[0], len);
in.read_from_start(&out[0], len);
return out;
}