Does the bind text family attempt to access the data pointed to by the passed parameter after the lifetime of the function call? I have a situation similar to the following:
Std::string S("Blah"); foo(S); Rest_of_program(); Where foo() is: Void foo(string& S) { //prepare a statement Sqlite3_bind_text(Statement, S.c_str(), S.size() + 1, SQLITE_[TRANSIENT | STATIC?]); //use statement } Is SQLITE_STATIC suitable for this situation? The string S is guaranteed to be "alive" until foo returns, but not afterwards. If S was terminated after the call to foo(), is my program well formed or do I need to use SQLITE_TRANSIENT? - Sherief _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users