mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
log the bad query
This commit is contained in:
parent
56ce5761d7
commit
0897ae2ba9
1 changed files with 1 additions and 1 deletions
|
@ -819,7 +819,7 @@ DBMgr::execSql( const char* const query )
|
|||
PGresult* result = PQexec( getThreadConn(), query );
|
||||
ok = PGRES_COMMAND_OK == PQresultStatus(result);
|
||||
if ( !ok ) {
|
||||
logf( XW_LOGERROR, "%s: PQexec=>%s;%s", __func__,
|
||||
logf( XW_LOGERROR, "%s(%s): PQexec=>%s;%s", __func__, query,
|
||||
PQresStatus(PQresultStatus(result)),
|
||||
PQresultErrorMessage(result) );
|
||||
clearThreadConn();
|
||||
|
|
Loading…
Reference in a new issue