From af5f4fe2ada328f9b3afd19842b82c345829669f Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 30 Dec 2011 18:49:04 -0800 Subject: [PATCH] Identify which operation returned the error. --- database/SqliteDatabase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/SqliteDatabase.cpp b/database/SqliteDatabase.cpp index 136114a33..8ecc505af 100644 --- a/database/SqliteDatabase.cpp +++ b/database/SqliteDatabase.cpp @@ -37,7 +37,7 @@ bool SqliteDatabase::executeSQL(const char* sql) int rc=sqlite3_prepare_v2(mConnection,sql,-1,&mCurrentStmt,NULL); if( rc!=SQLITE_OK ) { - cout << "SQL error:" << rc << endl; + cout << "SQL Perror:" << rc << endl; return(false); } rc=sqlite3_step(mCurrentStmt); @@ -50,7 +50,7 @@ bool SqliteDatabase::executeSQL(const char* sql) }else { mMoreRows=false; - cout << "SQL error:" << rc << endl; + cout << "SQL Serror:" << rc << endl; return(false); } @@ -103,7 +103,7 @@ bool SqliteDatabase::getNextRow() return(false); }else { - cout << "SQL error:" << rc << endl; + cout << "SQL Rerror:" << rc << endl; return(false); } }