bug_45876.phpt 740 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. --TEST--
  2. PDO_DBLIB: Does not support get column meta
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('pdo_dblib')) die('skip not loaded');
  6. require dirname(__FILE__) . '/config.inc';
  7. ?>
  8. --FILE--
  9. <?php
  10. require dirname(__FILE__) . '/config.inc';
  11. $stmt = $db->prepare("select top 1 ic1.* from information_schema.columns ic1");
  12. $stmt->execute();
  13. var_dump($stmt->getColumnMeta(0));
  14. $stmt = null;
  15. ?>
  16. --EXPECTF--
  17. array(10) {
  18. ["max_length"]=>
  19. int(%d)
  20. ["precision"]=>
  21. int(0)
  22. ["scale"]=>
  23. int(0)
  24. ["column_source"]=>
  25. string(13) "TABLE_CATALOG"
  26. ["native_type"]=>
  27. string(4) "char"
  28. ["native_type_id"]=>
  29. int(%d)
  30. ["native_usertype_id"]=>
  31. int(%d)
  32. ["pdo_type"]=>
  33. int(2)
  34. ["name"]=>
  35. string(13) "TABLE_CATALOG"
  36. ["len"]=>
  37. int(%d)
  38. }