Commit b675a78d authored by jan.koester's avatar jan.koester
Browse files

better

parent 5dca77fe
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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);