Download src/php/php-src/ext/pdo_firebird/tests/bug_aaa.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_aaa.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_firebird/tests/bug_aaa.phpt
-
curl -L -o bug_aaa.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_aaa.phpt
626 Bytes
| --TEST-- | |
| PDO_Firebird: cursor should not be marked as opened on singleton statements | |
| --EXTENSIONS-- | |
| pdo_firebird | |
| --SKIPIF-- | |
| require('skipif.inc'); | |
| --FILE-- | |
| require 'testdb.inc'; | |
| $dbh = getDbConnection(); | |
| $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING); | |
| $dbh->exec('create table test_aaa (id integer)'); | |
| $S = $dbh->prepare('insert into test_aaa (id) values (:id) returning id'); | |
| $S->execute(['id' => 1]); | |
| $S->execute(['id' => 2]); | |
| unset($S); | |
| unset($dbh); | |
| echo 'OK'; | |
| --CLEAN-- | |
| require 'testdb.inc'; | |
| $dbh = getDbConnection(); | |
| @$dbh->exec("DROP TABLE test_aaa"); | |
| unset($dbh); | |
| --EXPECT-- | |
| OK | |