pg_result_error_field
symfony/var-dumper
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 $result
,
int $field_code
):
string
|
false
|
null
if (-
1
===
$a
[
'num rows'
]) {
foreach (
self
::
DIAG_CODES
as
$k
=>
$v
) {
$a
[
'error'
][
$k
] =
pg_result_error_field
(
$result
,
$v
);
}
}
Caster/PgSqlCaster.php