Hi, ALL,
Here is the code I'm trying to use:

char *errmsg = NULL;
sqlite3_exec( handle, "BEGIN", 0, 0, &errmsg );
if( sqlite3_exec( ...., &errmsg ) != SQLITE_OK )
{
       printf( "Error executing query: %s", sqlite3_errmsg( m_handle ) );
       sqlite3_exec( handle, "ROLLBACK", 0, 0, &errmsg );
}

Can I reuse errmsg variable like this or do I have to call sqlite3_free()
and then execute "ROLLBACK" statement?

Thank you.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to