bug_68957.phpt 469 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. PDO_DBLIB bug #68957 PDO::query doesn't support several queries
  3. --EXTENSIONS--
  4. pdo_dblib
  5. --SKIPIF--
  6. <?php
  7. require __DIR__ . '/config.inc';
  8. ?>
  9. --FILE--
  10. <?php
  11. require __DIR__ . '/config.inc';
  12. $query = "declare @myInt int = 1; select @myInt;";
  13. $stmt = $db->query($query);
  14. $stmt->nextRowset(); // Added line
  15. $rows = $stmt->fetchAll();
  16. print_r($rows);
  17. ?>
  18. --EXPECT--
  19. Array
  20. (
  21. [0] => Array
  22. (
  23. [computed] => 1
  24. [0] => 1
  25. )
  26. )