PGSQL_ERRORS_SQLSTATE

ConstantConstant value changed in 8.4

PGSQL_ERRORS_SQLSTATE — Passed to pg_set_error_verbosity. Includes only the error severity and the SQLSTATE error code. If no error code is available, the output is like PGSQL_ERRORS_TERSE mode. Before PostgreSQL 11.1, the output is always the same as in PGSQL_ERRORS_TERSE mode.

PHP 5
PHP 7
PHP 8.0-8.1
PHP 8.2
PHP 8.3
Added
PHP 8.4
Changed
PHP 8.5
PHP 8.6
PGSQL_ERRORS_SQLSTATE = 3;

Changes to the PGSQL_ERRORS_SQLSTATE Constant

PHP 8.4

  • Constant value changed from 0 to 3

PHP 8.3

  • Constant added

PGSQL_ERRORS_SQLSTATE Constant Availability

PHP VersionAvailability
PHP 8.6Upcoming Release Yes
PHP 8.5Supported (Latest) Yes
PHP 8.4Supported Yes
PHP 8.3Security-Fixes Only Yes
PHP 8.2Security-Fixes Only No
PHP 8.1Unsupported No
PHP 8.0Unsupported No
PHP 7.4Unsupported No
PHP 7.3Unsupported No
PHP 7.2Unsupported No
PHP 7.1Unsupported No
PHP 7.0Unsupported No
PHP 5.6Unsupported No
PHP 5.5Unsupported No
PHP 5.4Unsupported No
PHP 5.3Unsupported No