cvs: peardoc /en/package/database/mdb2 intro-fetch.xml
| From: | Lukas Smith | Date: | Tue, 26 Sep 2006 08:49:44 +0000 |
| Subject: | cvs: peardoc /en/package/database/mdb2 intro-fetch.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8529@lists.php.net to get a copy of this message | ||
lsmith Tue Sep 26 08:49:44 2006 UTC
Modified files:
/peardoc/en/package/database/mdb2 intro-fetch.xml
Log:
- replaced redundant paragraph with an explantion for fetchAll() and fetchCol() (Doc Bug #8762)
http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/mdb2/intro-fetch.xml?r1=1.21&r2=1.22&diff_format=u
Index: peardoc/en/package/database/mdb2/intro-fetch.xml
diff -u peardoc/en/package/database/mdb2/intro-fetch.xml:1.21
peardoc/en/package/database/mdb2/intro-fetch.xml:1.22
--- peardoc/en/package/database/mdb2/intro-fetch.xml:1.21 Tue Sep 26 08:44:35 2006
+++ peardoc/en/package/database/mdb2/intro-fetch.xml Tue Sep 26 08:49:44 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.21 $ -->
+<!-- $Revision: 1.22 $ -->
<!--
@@ -33,15 +33,15 @@
</para>
<para>
<function>fetchRow</function> and <function>fetchOne</function> read an
- entire row or a single column respectively. The result pointer gets moved to
- the next row each time these methods are called. &null; is returned
- when the end of the result set is reached.
+ entire row or a single field from a column respectively. The result pointer
+ gets moved to the next row each time these methods are called. &null; is
+ returned when the end of the result set is reached.
</para>
<para>
- <function>fetchRow</function> reads an entire row as an array and
- <function>fetchOne</function> reads an single column into a scalar.
- The result pointer gets moved to the next row each time these methods are
- called. &null; is returned when the end of the result set is reached.
+ <function>fetchAll</function> and <function>fetchCol</function> read
all
+ rows in the result set and therefore move the result pointer to the end.
+ While <function>fetchAll</function> reads the entire row data,
+ <function>fetchCol</function> only reads a single column.
</para>
<para>
MDB2_Error is returned if an error is encountered.