pg_result_status

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Get status of query result
<?php pg_result_status(PgSql\Result $result, int $mode = PGSQL_STATUS_LONG): string|int
<?php     public static function castResult($result, array $a, Stub $stub, bool $isNested)

    {

        $a['num rows'] = pg_num_rows($result);

        $a['status'] = pg_result_status($result);

        if (isset(self::RESULT_STATUS[$a['status']])) {

            $a['status'] = new ConstStub(self::RESULT_STATUS[$a['status']], $a['status']);

        }
<?php         if (isset(self::RESULT_STATUS[$a['status']])) {

            $a['status'] = new ConstStub(self::RESULT_STATUS[$a['status']], $a['status']);

        }

        $a['command-completion tag'] = pg_result_status($result, \PGSQL_STATUS_STRING);



        if (-1 === $a['num rows']) {

            foreach (self::DIAG_CODES as $k => $v) {