pg_result_error_field

Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Returns an individual field of an error report
pg_result_error_field(PgSql\Result $resultint $field_code): string|false|null
        if (-=== $a['num rows']) {

            foreach (
self::DIAG_CODES as $k => $v) {

                
$a['error'][$k] = pg_result_error_field($result$v);

            }

        }