if ( sqlite3_open( database.c_str(), &m_pDB)!=SQLITE_OK )
throw sPerrorException( "Could not connect to the SQLite database '" + database + "'" );
m_pStmt = 0;
+ m_dolog = 0;
sqlite3_busy_handler(m_pDB, busyHandler, 0);
}
void SSQLite3::setLog(bool state)
{
- s_dolog=state;
+ m_dolog=state;
}
// Destructor.
{
const char *pTail;
- if(s_dolog)
+ if(m_dolog)
L<<Logger::Warning<<"Query: "<<query<<endl;
// Execute the query.
//! Pointer to the SQLite virtual machine executing a query.
sqlite3_stmt *m_pStmt;
- bool s_dolog;
+ bool m_dolog;
static int busyHandler(void*, int);
protected: