mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-27 22:15:49 +00:00
Cleanup chatty debug
This commit is contained in:
@@ -37,36 +37,38 @@ bool SqliteDatabase::executeSQL(const char* sql, bool fail_ok)
|
||||
{
|
||||
if (!fail_ok)
|
||||
{
|
||||
cout << "SQL Perror:" << rc << endl;
|
||||
#ifdef DEBUG
|
||||
cout << "SQL Perror:" << rc << endl;
|
||||
cout << "Statement: " << sql << endl;
|
||||
cout << "Error: " << sqlite3_errmsg(mConnection) << endl;
|
||||
#endif
|
||||
}
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
rc = sqlite3_step(mCurrentStmt);
|
||||
if (rc == SQLITE_ROW)
|
||||
{
|
||||
mMoreRows = true;
|
||||
}else if(rc==SQLITE_DONE)
|
||||
}
|
||||
else if (rc == SQLITE_DONE)
|
||||
{
|
||||
mMoreRows = false;
|
||||
}else
|
||||
}
|
||||
else
|
||||
{
|
||||
mMoreRows = false;
|
||||
if (!fail_ok)
|
||||
{
|
||||
cout << "SQL Serror:" << rc << endl;
|
||||
#ifdef DEBUG
|
||||
cout << "SQL Serror:" << rc << endl;
|
||||
cout << "Statement: " << sql << endl;
|
||||
cout << "Error: " << sqlite3_errmsg(mConnection) << endl;
|
||||
#endif
|
||||
}
|
||||
return(false);
|
||||
return false;
|
||||
}
|
||||
|
||||
return(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
// tells you how many rows were changed by an update or insert
|
||||
|
||||
Reference in New Issue
Block a user