php-src/ext/pdo_dblib/tests/bug_45876.phpt

40 lines
736 B
Plaintext
Raw Normal View History

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