Annotation of embedaddon/php/ext/pdo_dblib/tests/bug_45876.phpt, revision 1.1.1.1
1.1 misho 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:
12: $stmt = $db->prepare("select ic1.* from information_schema.columns ic1");
13: $stmt->execute();
14: var_dump($stmt->getColumnMeta(0));
15: $stmt = null;
16: ?>
17: --EXPECT--
18: array(8) {
19: ["max_length"]=>
20: int(255)
21: ["precision"]=>
22: int(0)
23: ["scale"]=>
24: int(0)
25: ["column_source"]=>
26: string(13) "TABLE_CATALOG"
27: ["native_type"]=>
28: string(4) "char"
29: ["name"]=>
30: string(13) "TABLE_CATALOG"
31: ["len"]=>
32: int(255)
33: ["pdo_type"]=>
34: int(2)
35: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>