From 3e2d71560c42ea36e5899d36527976ee2081589b Mon Sep 17 00:00:00 2001 From: kenjis Date: Tue, 30 Jan 2024 18:52:53 +0900 Subject: [PATCH] docs: add note to query->getFieldData() --- user_guide_src/source/database/metadata.rst | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/user_guide_src/source/database/metadata.rst b/user_guide_src/source/database/metadata.rst index 1845a0440b7a..2de5abc0e063 100644 --- a/user_guide_src/source/database/metadata.rst +++ b/user_guide_src/source/database/metadata.rst @@ -94,11 +94,6 @@ Usage example: .. literalinclude:: metadata/006.php -If you have run a query already you can use the result object instead of -supplying the table name: - -.. literalinclude:: metadata/007.php - The following data is available from this function if supported by your database: @@ -111,6 +106,17 @@ database: .. note:: Since v4.4.0, SQLSRV supported ``nullable``. +$query->getFieldData() +---------------------- + +If you have run a query already you can use the result object instead of +supplying the table name: + +.. literalinclude:: metadata/007.php + +.. note:: The data returned is different from the data from ``$db->getFieldData()``. + If you cannot get the data you need, use ``$db->getFieldData()``. + List the Indexes in a Table ===========================