summaryrefslogtreecommitdiff
path: root/ext/pdo_dblib/tests/bug_68957.phpt
blob: 47ff461bb3ea790ac822704f5e9fa45c671bf03f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
PDO_DBLIB bug #68957 PDO::query doesn't support several queries
--SKIPIF--
<?php
if (!extension_loaded('pdo_dblib')) die('skip not loaded');
require dirname(__FILE__) . '/config.inc';
?>
--FILE--
<?php
require dirname(__FILE__) . '/config.inc';

$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
        )

)