On 12/2/2016 6:56 PM, Igor Korot wrote:
res = sqlite3_bind_text( stmt, 1, sqlite_pimpl->m_myconv.to_bytes( tableName.c_str() ).c_str(), -1, SQLITE_STATIC );
SQLITE_STATIC tells SQLite that the string will outlive the statement handle. But in fact, you are passing a temporary buffer, deallocated at the end of the statement. Your program exhibits undefined behavior.
-- Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users