Download src/php/php-src/ext/pdo_dblib/tests/bug_68957.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/bug_68957.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_dblib/tests/bug_68957.phpt
-
curl -L -o bug_68957.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/bug_68957.phpt
514 Bytes
| --TEST-- | |
| PDO_DBLIB bug #68957 PDO::query doesn't support several queries | |
| --EXTENSIONS-- | |
| pdo_dblib | |
| --SKIPIF-- | |
| require __DIR__ . '/config.inc'; | |
| getDbConnection(); | |
| --FILE-- | |
| require __DIR__ . '/config.inc'; | |
| $db = getDbConnection(); | |
| $query = "declare @myInt int = 1; select @myInt;"; | |
| $stmt = $db->query($query); | |
| $stmt->nextRowset(); // Added line | |
| $rows = $stmt->fetchAll(); | |
| print_r($rows); | |
| --EXPECT-- | |
| Array | |
| ( | |
| [0] => Array | |
| ( | |
| [computed] => 1 | |
| [0] => 1 | |
| ) | |
| ) | |