1--TEST--
2Pdo\Dblib basic
3--EXTENSIONS--
4pdo_dblib
5--SKIPIF--
6<?php
7require __DIR__ . '/config.inc';
8getDbConnection();
9?>
10--FILE--
11<?php
12
13require __DIR__ . '/config.inc';
14$db = getDbConnection(Pdo\Dblib::class);
15
16$db->query("CREATE TABLE #pdo_dblib_001(name VARCHAR(32)); ");
17$db->query("INSERT INTO #pdo_dblib_001 VALUES('PHP'), ('PHP6');");
18
19foreach ($db->query('SELECT name FROM #pdo_dblib_001') as $row) {
20    var_dump($row);
21}
22
23echo "Fin.";
24?>
25--CLEAN--
26<?php
27require __DIR__ . '/config.inc';
28$db = getDbConnection();
29$db->query('DROP TABLE IF EXISTS #pdo_dblib_001');
30?>
31--EXPECT--
32array(2) {
33  ["name"]=>
34  string(3) "PHP"
35  [0]=>
36  string(3) "PHP"
37}
38array(2) {
39  ["name"]=>
40  string(4) "PHP6"
41  [0]=>
42  string(4) "PHP6"
43}
44Fin.
45