Req #74781 [Opn->Csd]: Add the latest PG_DIAG_* const

From: Date: Thu, 17 Aug 2017 19:07:52 +0000
Subject: Req #74781 [Opn->Csd]: Add the latest PG_DIAG_* const
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210722@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74781&edit=1 ID: 74781 Updated by: kalle@php.net Reported by: qschuler at neosyne dot com Summary: Add the latest PG_DIAG_* const -Status: Open +Status: Closed Type: Feature/Change Request Package: PostgreSQL related PHP Version: 7.2.0alpha1 -Assigned To: +Assigned To: kalle Block user comment: N Private report: N New Comment: I implemented these in master (7.3), its all up to the 7.2 RMs if this should be merged Previous Comments: ------------------------------------------------------------------------ [2017-06-19 13:44:50] qschuler at neosyne dot com 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 this bug report at https://bugs.php.net/bug.php?id=74781&edit=1

« previous php.bugs (#210722) next »