pg_last_error
symfony/var-dumper
Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Get the last error message string of a connection
pg_last_error
(?
PgSql\Connection $connection
=
null
):
string
}
$a
[
'pid'
] =
pg_get_pid
(
$link
);
$a
[
'last error'
] =
pg_last_error
(
$link
);
$a
[
'last notice'
] =
pg_last_notice
(
$link
);
$a
[
'host'
] =
pg_host
(
$link
);
$a
[
'port'
] =
pg_port
(
$link
);
Caster/PgSqlCaster.php