xref: /PHP-8.0/ext/pdo_dblib/tests/bug_45876.phpt (revision 26dfce7f)
1--TEST--
2PDO_DBLIB: Does not support get column meta
3--SKIPIF--
4<?php
5if (!extension_loaded('pdo_dblib')) die('skip not loaded');
6require __DIR__ . '/config.inc';
7?>
8--FILE--
9<?php
10require __DIR__ . '/config.inc';
11
12$stmt = $db->prepare("select top 1 ic1.* from information_schema.columns ic1");
13$stmt->execute();
14var_dump($stmt->getColumnMeta(0));
15$stmt = null;
16?>
17--EXPECTF--
18array(10) {
19  ["max_length"]=>
20  int(%d)
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  ["native_type_id"]=>
30  int(%d)
31  ["native_usertype_id"]=>
32  int(%d)
33  ["pdo_type"]=>
34  int(2)
35  ["name"]=>
36  string(13) "TABLE_CATALOG"
37  ["len"]=>
38  int(%d)
39}
40