On 9/13/2017 9:20 PM, Papa wrote:
void write(const std::string& table_name, const int pos, const int64_t data) { ... std::string apstr = "INSERT INTO ("; apstr += table_name.data(); apstr += ", "; apstr += data;
I'm pretty sure this calls string::operator+=(char), appending to the string a character whose ASCII code happens to be char(data). Which is unlikely to be what you had in mind. I suspect you get a warning from the compiler on this line, about losing significant bits. Anyway, as already noted, the INSERT statement you are trying to build is not a valid SQL syntax. -- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users