Download src/php/php-src/ext/pgsql/tests/16pg_result_status.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pgsql/tests/16pg_result_status.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pgsql/tests/16pg_result_status.phpt
-
curl -L -o 16pg_result_status.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pgsql/tests/16pg_result_status.phpt
680 Bytes
| --TEST-- | |
| PostgreSQL pg_result_status() | |
| --EXTENSIONS-- | |
| pgsql | |
| --SKIPIF-- | |
| include("inc/skipif.inc"); | |
| --FILE-- | |
| include 'inc/config.inc'; | |
| $table_name = "table_16pg_result_status"; | |
| $db = pg_connect($conn_str); | |
| pg_query($db, "CREATE TABLE {$table_name} (num int, str text, bin bytea)"); | |
| $sql = "SELECT * FROM ".$table_name." WHERE num = -2"; | |
| $result = pg_query($db, "BEGIN;END"); | |
| echo pg_result_status($result)."\n"; | |
| echo pg_result_status($result, PGSQL_STATUS_STRING)."\n"; | |
| --CLEAN-- | |
| include('inc/config.inc'); | |
| $table_name = "table_16pg_result_status"; | |
| $db = pg_connect($conn_str); | |
| pg_query($db, "DROP TABLE IF EXISTS {$table_name}"); | |
| --EXPECT-- | |
| 1 | |
| COMMIT | |