"Sherief N. Farouk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does the bind text family attempt to access the data pointed to by the > passed parameter after the lifetime of the function call?
Yes, unless you pass SQLITE_TRANSIENT flag. > Sqlite3_bind_text(Statement, S.c_str(), S.size() + 1, > SQLITE_[TRANSIENT | STATIC?]); Drop +1. It's unlikely that you actually want terminating NUL to be part of the string in the database. > //use statement > > } > > Is SQLITE_STATIC suitable for this situation? Yes, as long as "use statement" part involves calling sqlite3_reset or sqlite3_finalize on Statement. Igor Tandetnik _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users