Download src/php/php-src/ext/pdo_firebird/tests/bug_62024.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 916 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_62024.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_firebird/tests/bug_62024.phpt
-
curl -L -o bug_62024.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_firebird/tests/bug_62024.phpt
916 Bytes
| --TEST-- | |
| Bug #62024 Cannot insert second row with null using parametrized query (Firebird PDO) | |
| --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 test62024 (ID INTEGER NOT NULL, TEXT VARCHAR(10))"); | |
| //start actual test | |
| $sql = "insert into test62024 (id, text) values (?, ?)"; | |
| $sttmt = $dbh->prepare($sql); | |
| $args_ok = array(1, "test1"); | |
| $args_err = array(2, null); | |
| $res = $sttmt->execute($args_ok); | |
| var_dump($res); | |
| $res = $sttmt->execute($args_err); | |
| var_dump($res); | |
| //teardown test data | |
| $sttmt = $dbh->prepare('DELETE FROM test62024'); | |
| $sttmt->execute(); | |
| unset($sttmt); | |
| unset($dbh); | |
| --CLEAN-- | |
| require 'testdb.inc'; | |
| $dbh = getDbConnection(); | |
| @$dbh->exec("DROP TABLE test62024"); | |
| unset($dbh); | |
| --EXPECT-- | |
| bool(true) | |
| bool(true) | |