-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
@degtyaryov
Description
Description
Hello!
The following code:
<?php $is_aborted_pipeline_status = (pg_pipeline_status($connection) === PGSQL_PIPELINE_ABORTED); // PQ_PIPELINE_ABORTED $is_aborted_result_status = (pg_result_status($result) === 11); // PGRES_PIPELINE_ABORTED
In libpq exists two constant:
PQ_PIPELINE_ABORTED = 2
PGRES_PIPELINE_ABORTED = 11
In php naming constant rules:
PQ_* -> PGSQL_*
PQRES_* -> PGSQL_*
Need add constant PGRES_PIPELINE_ABORTED in PHP!
The absence of a second constant in IDE autocompletion leads to unobvious errors.
PHP Version
PHP 8.3
Operating System
No response