mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +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 );
|
PGresult* result = PQexec( getThreadConn(), query );
|
||||||
ok = PGRES_COMMAND_OK == PQresultStatus(result);
|
ok = PGRES_COMMAND_OK == PQresultStatus(result);
|
||||||
if ( !ok ) {
|
if ( !ok ) {
|
||||||
logf( XW_LOGERROR, "%s: PQexec=>%s;%s", __func__,
|
logf( XW_LOGERROR, "%s(%s): PQexec=>%s;%s", __func__, query,
|
||||||
PQresStatus(PQresultStatus(result)),
|
PQresStatus(PQresultStatus(result)),
|
||||||
PQresultErrorMessage(result) );
|
PQresultErrorMessage(result) );
|
||||||
clearThreadConn();
|
clearThreadConn();
|
||||||
|
|
Loading…
Reference in a new issue