mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Identify which operation returned the error.
This commit is contained in:
@@ -37,7 +37,7 @@ bool SqliteDatabase::executeSQL(const char* sql)
|
|||||||
int rc=sqlite3_prepare_v2(mConnection,sql,-1,&mCurrentStmt,NULL);
|
int rc=sqlite3_prepare_v2(mConnection,sql,-1,&mCurrentStmt,NULL);
|
||||||
if( rc!=SQLITE_OK )
|
if( rc!=SQLITE_OK )
|
||||||
{
|
{
|
||||||
cout << "SQL error:" << rc << endl;
|
cout << "SQL Perror:" << rc << endl;
|
||||||
return(false);
|
return(false);
|
||||||
}
|
}
|
||||||
rc=sqlite3_step(mCurrentStmt);
|
rc=sqlite3_step(mCurrentStmt);
|
||||||
@@ -50,7 +50,7 @@ bool SqliteDatabase::executeSQL(const char* sql)
|
|||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
mMoreRows=false;
|
mMoreRows=false;
|
||||||
cout << "SQL error:" << rc << endl;
|
cout << "SQL Serror:" << rc << endl;
|
||||||
return(false);
|
return(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,7 +103,7 @@ bool SqliteDatabase::getNextRow()
|
|||||||
return(false);
|
return(false);
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
cout << "SQL error:" << rc << endl;
|
cout << "SQL Rerror:" << rc << endl;
|
||||||
return(false);
|
return(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user