Loading src/database/pgsql.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -52,7 +52,7 @@ namespace blogi { PGresult *pres = PQexec(_dbconn,sql->c_str()); PGresult *pres = PQexec(_dbconn,sql->c_str()); int pstate=PQresultStatus(pres); int pstate=PQresultStatus(pres); if( pstate!=PGRES_COMMAND_OK) { if(pstate==PGRES_FATAL_ERROR || pstate==PGRES_BAD_RESPONSE) { libhttppp::HTTPException exp; libhttppp::HTTPException exp; exp[libhttppp::HTTPException::Critical] << PQerrorMessage(_dbconn); exp[libhttppp::HTTPException::Critical] << PQerrorMessage(_dbconn); PQclear(pres); PQclear(pres); Loading Loading
src/database/pgsql.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -52,7 +52,7 @@ namespace blogi { PGresult *pres = PQexec(_dbconn,sql->c_str()); PGresult *pres = PQexec(_dbconn,sql->c_str()); int pstate=PQresultStatus(pres); int pstate=PQresultStatus(pres); if( pstate!=PGRES_COMMAND_OK) { if(pstate==PGRES_FATAL_ERROR || pstate==PGRES_BAD_RESPONSE) { libhttppp::HTTPException exp; libhttppp::HTTPException exp; exp[libhttppp::HTTPException::Critical] << PQerrorMessage(_dbconn); exp[libhttppp::HTTPException::Critical] << PQerrorMessage(_dbconn); PQclear(pres); PQclear(pres); Loading