Download src/php/php-src/ext/pdo_dblib/tests/bug_45876.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 747 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/bug_45876.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pdo_dblib/tests/bug_45876.phpt
-
curl -L -o bug_45876.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pdo_dblib/tests/bug_45876.phpt
747 Bytes
| --TEST-- | |
| PDO_DBLIB: Does not support get column meta | |
| --EXTENSIONS-- | |
| pdo_dblib | |
| --SKIPIF-- | |
| require __DIR__ . '/config.inc'; | |
| getDbConnection(); | |
| --CONFLICTS-- | |
| all | |
| --FILE-- | |
| require __DIR__ . '/config.inc'; | |
| $db = getDbConnection(); | |
| $stmt = $db->prepare("select top 1 ic1.* from information_schema.columns ic1"); | |
| $stmt->execute(); | |
| var_dump($stmt->getColumnMeta(0)); | |
| $stmt = null; | |
| --EXPECTF-- | |
| array(10) { | |
| ["max_length"]=> | |
| int(%d) | |
| ["precision"]=> | |
| int(0) | |
| ["scale"]=> | |
| int(0) | |
| ["column_source"]=> | |
| string(13) "TABLE_CATALOG" | |
| ["native_type"]=> | |
| string(4) "char" | |
| ["native_type_id"]=> | |
| int(%d) | |
| ["native_usertype_id"]=> | |
| int(%d) | |
| ["pdo_type"]=> | |
| int(2) | |
| ["name"]=> | |
| string(13) "TABLE_CATALOG" | |
| ["len"]=> | |
| int(%d) | |
| } | |