reference/pdo/pdostatement/getcolumnmeta.xml
661e6858acade9f5a08fc8f9c07b605f42f4a700
...
...
@@ -9,8 +9,8 @@
9
9
</refnamediv>
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
-
<methodsynopsis>
13
-
<modifier>public</modifier> <type>array</type><methodname>PDOStatement::getColumnMeta</methodname>
12
+
<methodsynopsis role="PDOStatement">
13
+
<modifier>public</modifier> <type class="union"><type>array</type><type>false</type></type><methodname>PDOStatement::getColumnMeta</methodname>
14
14
<methodparam><type>int</type><parameter>column</parameter></methodparam>
15
15
</methodsynopsis>
16
16
...
...
@@ -20,19 +20,14 @@
20
20
</para>
21
21
<warning>
22
22
<simpara>
23
-
Not all PDO drivers support
24
-
<function>PDOStatement::getColumnMeta</function>.
23
+
Some drivers may not implement
24
+
<methodname>PDOStatement::getColumnMeta</methodname>,
25
+
as it is optional. However, all
26
+
<link linkend="pdo.drivers">PDO drivers</link>
27
+
documented in the manual implement this function.
25
28
</simpara>
26
29
</warning>
27
30

28
-
<para>The following drivers support this method:</para>
29
-
<itemizedlist>
30
-
<listitem><simpara><link linkend="ref.pdo-dblib">PDO_DBLIB</link></simpara></listitem>
31
-
<listitem><simpara><link linkend="ref.pdo-mysql">PDO_MYSQL</link></simpara></listitem>
32
-
<listitem><simpara><link linkend="ref.pdo-pgsql">PDO_PGSQL</link></simpara></listitem>
33
-
<listitem><simpara><link linkend="ref.pdo-sqlite">PDO_SQLITE</link></simpara></listitem>
34
-
</itemizedlist>
35
-

36
31
</refsect1>
37
32
<refsect1 role="parameters">
38
33
&reftitle.parameters;
...
...
@@ -59,8 +54,8 @@
59
54
<table>
60
55
<title>Column metadata</title>
61
56
<tgroup cols="2">
62
-
<colspec colname='c1'/>
63
-
<colspec colname='c2'/>
57
+
<colspec colname="c1"/>
58
+
<colspec colname="c2"/>
64
59
<thead>
65
60
<row>
66
61
<entry>Name</entry>
...
...
@@ -76,7 +71,7 @@
76
71
<entry><literal>driver:decl_type</literal></entry>
77
72
<entry>The SQL type used to represent the column value in the database.
78
73
If the column in the result set is the result of a function, this value
79
-
is not returned by <function>PDOStatement::getColumnMeta</function>.
74
+
is not returned by <methodname>PDOStatement::getColumnMeta</methodname>.
80
75
</entry>
81
76
</row>
82
77
<row>
...
...
@@ -126,32 +121,6 @@
126
121
</refsect1>
127
122
-->
128
123

129
-
<refsect1 role="changelog">
130
-
&reftitle.changelog;
131
-
<para>
132
-
<informaltable>
133
-
<tgroup cols="2">
134
-
<thead>
135
-
<row>
136
-
<entry>&Version;</entry>
137
-
<entry>&Description;</entry>
138
-
</row>
139
-
</thead>
140
-
<tbody>
141
-
<row>
142
-
<entry>5.4.0</entry>
143
-
<entry><link linkend="ref.pdo-dblib">PDO_DBLIB</link> driver support added</entry>
144
-
</row>
145
-
<row>
146
-
<entry>5.2.3</entry>
147
-
<entry><literal>table</literal> field</entry>
148
-
</row>
149
-
</tbody>
150
-
</tgroup>
151
-
</informaltable>
152
-
</para>
153
-
</refsect1>
154
-

155
124
<refsect1 role="examples">
156
125
&reftitle.examples;
157
126
<para>
...
...
@@ -199,14 +168,13 @@ array(6) {
199
168
&reftitle.seealso;
200
169
<para>
201
170
<simplelist>
202
-
<member><function>PDOStatement::columnCount</function></member>
203
-
<member><function>PDOStatement::rowCount</function></member>
171
+
<member><methodname>PDOStatement::columnCount</methodname></member>
172
+
<member><methodname>PDOStatement::rowCount</methodname></member>
204
173
</simplelist>
205
174
</para>
206
175
</refsect1>
207
176

208
177
</refentry>
209
-

210
178
<!-- Keep this comment at the end of the file
211
179
Local variables:
212
180
mode: sgml
213
181