log the bad query

This commit is contained in:
Eric House 2014-04-17 07:43:58 -07:00
parent 56ce5761d7
commit 0897ae2ba9

View file

@ -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();