Skip to content

Commit 3e2d715

Browse files
committed
docs: add note to query->getFieldData()
1 parent f05859e commit 3e2d715

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

user_guide_src/source/database/metadata.rst

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ Usage example:
9494

9595
.. literalinclude:: metadata/006.php
9696

97-
If you have run a query already you can use the result object instead of
98-
supplying the table name:
99-
100-
.. literalinclude:: metadata/007.php
101-
10297
The following data is available from this function if supported by your
10398
database:
10499

@@ -111,6 +106,17 @@ database:
111106

112107
.. note:: Since v4.4.0, SQLSRV supported ``nullable``.
113108

109+
$query->getFieldData()
110+
----------------------
111+
112+
If you have run a query already you can use the result object instead of
113+
supplying the table name:
114+
115+
.. literalinclude:: metadata/007.php
116+
117+
.. note:: The data returned is different from the data from ``$db->getFieldData()``.
118+
If you cannot get the data you need, use ``$db->getFieldData()``.
119+
114120
List the Indexes in a Table
115121
===========================
116122

0 commit comments

Comments
 (0)