virtual bool open(const char* name)
{
if( ::sqlite3_open(name, &m_device) != SQLITE_OK ){
- throw new db_exception(::sqlite3_errmsg(m_device));
+ throw db_exception(::sqlite3_errmsg(m_device));
return false; // sqlite3_errmsg(db));
}
else
query_result result;
char *szErrMsg = NULL;
if ( ::sqlite3_exec(m_device, cmd, _query_callback, &result, &szErrMsg) != SQLITE_OK ){
- throw new db_exception(::sqlite3_errmsg(m_device));
+ throw db_exception(::sqlite3_errmsg(m_device));
}
else
result.status = true;