drivers/mysql_backend.cpp: may be need another length in std::string s.reserve(...)
Brought to you by:
artyom-beilis
In 'drivers/mysql_backend.cpp' where using 'mysql_real_escape_string' (line 290):
size_t len = mysql_real_escape_string(conn_,&buf.front(),b,e-b);
std::string &s=at(col);
Return length of the escaped string.
But after in the code:
s.reserve(e-b+2);
May be need use variable len ?
Anonymous
Project "cppdb" is not a priority?
s.reserve( len + 2 );