Loading backends/pgsql/pgsql.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ dbpp::Postgresql::Postgresql(const char *constr) { _dbconn = PQconnectdb(constr); if (PQstatus(_dbconn) != CONNECTION_OK){ PQfinish(_dbconn); throw PQerrorMessage(_dbconn); throw static_cast<const char*>(PQerrorMessage(_dbconn)); } } Loading @@ -53,7 +53,7 @@ int dbpp::Postgresql::exec(const SQL &sql,DBResult &res){ if(pstate==PGRES_FATAL_ERROR || pstate==PGRES_BAD_RESPONSE) { PQclear(pres); throw PQerrorMessage(_dbconn); throw static_cast<const char*>(PQerrorMessage(_dbconn)); } res.clear(); Loading Loading
backends/pgsql/pgsql.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ dbpp::Postgresql::Postgresql(const char *constr) { _dbconn = PQconnectdb(constr); if (PQstatus(_dbconn) != CONNECTION_OK){ PQfinish(_dbconn); throw PQerrorMessage(_dbconn); throw static_cast<const char*>(PQerrorMessage(_dbconn)); } } Loading @@ -53,7 +53,7 @@ int dbpp::Postgresql::exec(const SQL &sql,DBResult &res){ if(pstate==PGRES_FATAL_ERROR || pstate==PGRES_BAD_RESPONSE) { PQclear(pres); throw PQerrorMessage(_dbconn); throw static_cast<const char*>(PQerrorMessage(_dbconn)); } res.clear(); Loading