723
737
result = zbx_malloc(NULL, sizeof(ZBX_PG_DB_RESULT));
730
745
zabbix_errlog(ERR_Z3005, 0, "Result is NULL", sql);
735
749
error = zbx_dsprintf(error, "%s:%s",
736
750
PQresStatus(PQresultStatus(result->pg_result)),
737
751
PQresultErrorMessage(result->pg_result));
738
752
zabbix_errlog(ERR_Z3005, 0, error, sql);