Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PGSQL pipeline mode constant PGRES_PIPELINE_ABORTED not found and naming problem #12685

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /