php-src/ext/pgsql
Omar Emara 75da0d7c45 PGSQL: Allow unconditional selection in pg_select
Previously, pg_select did not allow unconditional selection, where an
empty ids array would result in a function failure.

This patch implements two changes:
- Make the ids array an optional parameter.
- Allow the ids array to be empty.

In both cases, unconditional selection happen, which is equivalent to
pg_query('SELECT * FROM <table>;').

Two test cases were added to test the aforementioned changes.

Close GH-5332
2023-10-08 18:22:50 +01:00
..
tests PGSQL: Allow unconditional selection in pg_select 2023-10-08 18:22:50 +01:00
config.m4 check PQsetErrorContextVisibility availability (libpq >= 9.6) 2023-06-21 08:47:59 +02:00
config.w32 PGSQL and POD_SQL: don't include pg_config.h 2020-05-25 10:48:35 +02:00
CREDITS
pgsql_arginfo.h PGSQL: Allow unconditional selection in pg_select 2023-10-08 18:22:50 +01:00
pgsql.c PGSQL: Allow unconditional selection in pg_select 2023-10-08 18:22:50 +01:00
pgsql.stub.php PGSQL: Allow unconditional selection in pg_select 2023-10-08 18:22:50 +01:00
php_pgsql.h Make the $row param of pg_fetch_result(), pg_field_prtlen() and pg_field_is_null() nullable 2023-07-18 12:59:21 +02:00