fixed backend tests
This commit is contained in:
@@ -27,7 +27,7 @@ bool is_result_error(const PGresult *res) {
|
||||
return true;
|
||||
}
|
||||
const auto status = PQresultStatus(res);
|
||||
return status != PGRES_TUPLES_OK && status == PGRES_COMMAND_OK;
|
||||
return status != PGRES_TUPLES_OK && status != PGRES_COMMAND_OK;
|
||||
}
|
||||
|
||||
void throw_postgres_error(const char *what, const std::string &source)
|
||||
|
||||
Reference in New Issue
Block a user