Req #74781 [NEW]: Add the latest PG_DIAG_* const

From: Date: Mon, 19 Jun 2017 13:44:55 +0000
Subject: Req #74781 [NEW]: Add the latest PG_DIAG_* const
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209592@lists.php.net to get a copy of this message
From: qschuler at neosyne dot com Operating system: PHP version: 7.2.0alpha1 Package: PostgreSQL related Bug Type: Feature/Change Request Bug description:Add the latest PG_DIAG_* const Description: ------------ The function pg_result_error_field uses some PGSQL_DIAG_* to get information about an error thrown by the database. The existing constants are: PG_DIAG_SEVERITY PG_DIAG_SQLSTATE PG_DIAG_MESSAGE_PRIMARY PG_DIAG_MESSAGE_DETAIL PG_DIAG_MESSAGE_HINT PG_DIAG_STATEMENT_POSITION PG_DIAG_INTERNAL_POSITION PG_DIAG_INTERNAL_QUERY PG_DIAG_CONTEXT PG_DIAG_SOURCE_FILE PG_DIAG_SOURCE_LINE PG_DIAG_SOURCE_FUNCTION Some other constants has been added since PostgreSQL 9.3: PG_DIAG_SCHEMA_NAME PG_DIAG_TABLE_NAME PG_DIAG_COLUMN_NAME PG_DIAG_DATATYPE_NAME PG_DIAG_CONSTRAINT_NAME And since PostgreSQL 9.6: PG_DIAG_SEVERITY_NONLOCALIZED Could we add the this new constants in order to improve the error messages? -- Edit bug report at https://bugs.php.net/bug.php?id=74781&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74781&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74781&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74781&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74781&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74781&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74781&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74781&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74781&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74781&r=support Expected behavior: https://bugs.php.net/fix.php?id=74781&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74781&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74781&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74781&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74781&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74781&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74781&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74781&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74781&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74781&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74781&r=mysqlcfg

« previous php.bugs (#209592) next »