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