php-src/ext/pdo_dblib/tests/bug_45876.phpt
Adam Baratz d334d319f0 Limit size of result set for test query
This result set can be very large, depending on the database. This change
ensures this test won't be slow.
2016-09-21 16:21:33 -04:00

40 lines
740 B
PHP

--TEST--
PDO_DBLIB: Does not support get column meta
--SKIPIF--
<?php
if (!extension_loaded('pdo_dblib')) die('skip not loaded');
require dirname(__FILE__) . '/config.inc';
?>
--FILE--
<?php
require dirname(__FILE__) . '/config.inc';
$stmt = $db->prepare("select top 1 ic1.* from information_schema.columns ic1");
$stmt->execute();
var_dump($stmt->getColumnMeta(0));
$stmt = null;
?>
--EXPECTF--
array(10) {
["max_length"]=>
int(%d)
["precision"]=>
int(0)
["scale"]=>
int(0)
["column_source"]=>
string(13) "TABLE_CATALOG"
["native_type"]=>
string(4) "char"
["native_type_id"]=>
int(%d)
["native_usertype_id"]=>
int(%d)
["pdo_type"]=>
int(2)
["name"]=>
string(13) "TABLE_CATALOG"
["len"]=>
int(%d)
}