php-src/ext/pgsql/tests
David Carlier e69bccd7c7
ext/pgsql: adding pg_socket_poll.
Using PQSocketPoll to poll on a connection's socket.
Returns immediatly is there no event expected on read and write.
Other than that, it is a thin wrapper on top of poll, thus reflecting
 its return value.

close GH-14366
2024-05-31 20:10:49 +01:00
..
inc ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
00version.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
01createdb.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
02connection.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
03sync_query.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
04async_query.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
05large_object.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
06_bug73498.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
06copy_2.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
06copy.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
07optional.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
08escape.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
09notice.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
10pg_convert_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
10pg_convert_json_array.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
10pg_convert.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
11pg_meta_data.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
12pg_insert_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
12pg_insert.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
13pg_select_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
13pg_select.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
14pg_update_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
14pg_update.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
15pg_delete.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
16pg_result_status.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
17result.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
18pg_escape_bytea_before.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
18pg_escape_bytea_esc.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
18pg_escape_bytea_hex.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
19pg_ping.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
20pg_get_pid.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
21pg_get_notify.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
22pg_fetch_object.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
23sync_query_params.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
24sync_query_prepared.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
25async_query_params.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
26async_query_prepared.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
27large_object_oid.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
28large_object_import_oid.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
29nb_async_connect.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
30nb_async_query_params.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
31nb_async_query_prepared.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
32nb_async_query.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug14383.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug24499.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug27597.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug32223.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug32223b.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug36625.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug39971.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
80_bug42783.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
98old_api.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
9999dropdb.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug37100_9.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug37100.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
bug46408.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug47199.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug60244.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug64609.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug65119.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug68638.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug71062.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug71998.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug72028.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug72195.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug72197.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug75419.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug76548.phpt Deprecate calling pg_fetch_result(), pg_field_prtlen(), and pg_field_is_null() with 2 arguments 2023-12-04 22:27:59 +01:00
bug77047.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
bug81720.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
changepassword.phpt ext/pgsql: adding pg_change_password functionality. 2024-05-20 12:57:37 +01:00
close_default_link.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
CONFLICTS Implement fine-grained conflict handling 2019-02-20 11:20:40 +01:00
connect_after_close.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
connection_reuse.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
deprecated_implicit_default_link.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
gh8253.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
gh10672.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
gh12763.phpt Fix test 2023-11-28 02:00:47 +03:00
gh13354.phpt GH-13355 fix new pgsql test 2024-02-08 22:44:03 +00:00
gh13519.phpt Fix GH-13519: another attempt after the faulty fix. 2024-04-27 12:15:59 +01:00
no_link_open.phpt Deprecate using the implicit default PgSQL connection 2021-07-09 23:12:37 +02:00
pg_delete_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_insert_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_insert_002.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_meta_data_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_put_copy.phpt ext/pgsql: adding pg_put_copy_data/pg_put_copy_end. 2024-05-28 18:35:40 +01:00
pg_result_memory_size.phpt ext/pgsql: add pg_result_memory_size 2024-05-13 22:58:02 +01:00
pg_select_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_socket_poll.phpt ext/pgsql: adding pg_socket_poll. 2024-05-31 20:10:49 +01:00
pg_trace.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
pg_update_001.phpt ext/pgsql: Refactor tests (#12608) 2023-11-06 22:36:52 +00:00
php.gif
README.md Update bug tracker links 2022-05-12 14:55:11 +02:00

The pgsql extension tests

Test scripts assumes:

  • PostgreSQL server is installed locally
  • There is a PostgreSQL account for the users running the test scripts
  • There is database named test

For instance, if your login name is testuser, you should have PostgreSQL user account named testuser and grant that user access to the database test.

If you have account and database, type createdb test from command prompt to create the database to execute the test scripts. By executing the above command as the same user running the tests you ensure that the user is granted access to the database.

If you find problems in PostgreSQL extension, please report a bug.