Download src/php/php-src/ext/odbc/tests/bug80592.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 762 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug80592.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/odbc/tests/bug80592.phpt
-
curl -L -o bug80592.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/odbc/tests/bug80592.phpt
762 Bytes
| --TEST-- | |
| Bug #80592 (all floats are the same in ODBC parameters) | |
| --EXTENSIONS-- | |
| odbc | |
| --SKIPIF-- | |
| include 'skipif.inc'; | |
| --FILE-- | |
| include 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn,"CREATE TABLE bug80592 (f1 float not null, f2 float not null, f3 float not null)"); | |
| $stmt = odbc_prepare($conn, "INSERT INTO bug80592 (f1, f2, f3) values (?, ?, ?)"); | |
| odbc_execute($stmt, [1.0, 2.0, 3.0]); | |
| $res = odbc_exec($conn, "SELECT f1, f2, f3 from bug80592"); | |
| var_dump(odbc_fetch_array($res)); | |
| --CLEAN-- | |
| include 'config.inc'; | |
| $conn = odbc_connect($dsn, $user, $pass); | |
| odbc_exec($conn, "DROP TABLE bug80592"); | |
| --EXPECT-- | |
| array(3) { | |
| ["f1"]=> | |
| string(3) "1.0" | |
| ["f2"]=> | |
| string(3) "2.0" | |
| ["f3"]=> | |
| string(3) "3.0" | |
| } | |