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