On 1 Nov 2011, at 11:09pm, ChingChang Hsiao wrote:
> dbStatements.push_back( "COMMIT;" );
>
> // populate the DB
> vector<string>::iterator dbStatementsIter;
> SqlQuery oper_db(operDatabase, __FILE__, __LINE__);
> for ( dbStatementsIter = dbStatements.begin(); dbStatementsIter !=
> dbStatements.end(); dbStatementsIter++ ) {
> oper_db.execw( *(dbStatementsIter) );
> }
For debugging purposes, please log the value of
dbStatements.length()
before the loop starts, then check to see how many statements are executed
before you get a core dump. It would be very useful to know, for example,
whether your code always crashes at the first 'UPDATE', or at the 'COMMIT'.
Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users