dbs Wed May 18 11:13:06 2005 EDT
Modified files:
/phpdoc/en/reference/ibm_db2/functions db2-bind-param.xml
db2-exec.xml db2-execute.xml
db2-fetch-assoc.xml
db2-fetch-both.xml
db2-fetch-into.xml
db2-fetch-object.xml
db2-fetch-row.xml
db2-next-result.xml
db2-num-rows.xml
db2-result.xml
db2-rollback.xml
Log:
Change db2_fetch_into() to db2_fetch_array() -- part 1.
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-bind-param.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-bind-param.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-bind-param.xml:1.4
phpdoc/en/reference/ibm_db2/functions/db2-bind-param.xml:1.5
--- phpdoc/en/reference/ibm_db2/functions/db2-bind-param.xml:1.4 Wed May
4 05:39:11 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-bind-param.xml Wed May 18
11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-bind-param">
<refnamediv>
@@ -150,7 +150,7 @@
$upper_limit = 15.0;
if (db2_execute($stmt)) {
- while ($row = db2_fetch_into($stmt)) {
+ while ($row = db2_fetch_array($stmt)) {
print "{$row[0]}, {$row[1]}, {$row[2]}\n";
}
}
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-exec.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-exec.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-exec.xml:1.3
phpdoc/en/reference/ibm_db2/functions/db2-exec.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-exec.xml:1.3 Wed Apr 13
14:49:30 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-exec.xml Wed May 18 11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-exec">
<refnamediv>
@@ -168,7 +168,7 @@
if ($conn) {
require_once('prepare.inc');
$stmt = db2_exec($conn, $sql, array('cursor' => DB2_SCROLLABLE));
- while ($row = db2_fetch_into($stmt)) {
+ while ($row = db2_fetch_array($stmt)) {
print "$row[0]\n";
}
}
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-execute.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-execute.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-execute.xml:1.3
phpdoc/en/reference/ibm_db2/functions/db2-execute.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-execute.xml:1.3 Wed Apr 20
00:29:20 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-execute.xml Wed May 18
11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-execute">
<refnamediv>
@@ -28,7 +28,7 @@
can retrieve a row as an array from the <literal>stmt</literal> resource
using <function>db2_fetch_assoc</function>,
<function>db2_fetch_both</function>, or
- <function>db2_fetch_into</function>. Alternatively, you can use
+ <function>db2_fetch_array</function>. Alternatively, you can use
<function>db2_fetch_row</function> to move the result set pointer to the
next row and fetch a column at a time from that row with
<function>db2_result</function>.
@@ -146,9 +146,9 @@
<para>
<simplelist>
<member><function>db2_exec</function></member>
+ <member><function>db2_fetch_array</function></member>
<member><function>db2_fetch_assoc</function></member>
<member><function>db2_fetch_both</function></member>
- <member><function>db2_fetch_into</function></member>
<member><function>db2_fetch_row</function></member>
<member><function>db2_prepare</function></member>
<member><function>db2_result</function></member>
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml:1.3
phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml:1.3 Fri Apr
29 10:26:06 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-fetch-assoc.xml Wed May 18
11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-fetch-assoc">
<refnamediv>
@@ -134,8 +134,8 @@
&reftitle.seealso;
<para>
<simplelist>
+ <member><function>db2_fetch_array</function></member>
<member><function>db2_fetch_both</function></member>
- <member><function>db2_fetch_into</function></member>
<member><function>db2_fetch_object</function></member>
<member><function>db2_fetch_row</function></member>
<member><function>db2_result</function></member>
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml:1.3
phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml:1.3 Fri Apr
29 10:26:06 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-fetch-both.xml Wed May 18
11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-fetch-both">
<refnamediv>
@@ -23,7 +23,7 @@
row in a result set. Note that the row returned by
<function>db2_fetch_both</function> requires more memory than the
single-indexed arrays returned by <function>db2_fetch_assoc</function> or
- <function>db2_fetch_into</function>.
+ <function>db2_fetch_array</function>.
</para>
</refsect1>
@@ -141,8 +141,8 @@
&reftitle.seealso;
<para>
<simplelist>
+ <member><function>db2_fetch_array</function></member>
<member><function>db2_fetch_assoc</function></member>
- <member><function>db2_fetch_into</function></member>
<member><function>db2_fetch_object</function></member>
<member><function>db2_fetch_row</function></member>
<member><function>db2_result</function></member>
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-fetch-into.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-fetch-into.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-fetch-into.xml:1.3
phpdoc/en/reference/ibm_db2/functions/db2-fetch-into.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-fetch-into.xml:1.3 Fri Apr
29 10:26:06 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-fetch-into.xml Wed May 18
11:13:04 2005
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-fetch-into">
<refnamediv>
- <refname>db2_fetch_into</refname>
+ <refname>db2_fetch_array</refname>
<refpurpose>
Returns an array, indexed by column position, representing a row in a
result set
</refpurpose>
@@ -11,7 +11,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
- <type>array</type><methodname>db2_fetch_into</methodname>
+ <type>array</type><methodname>db2_fetch_array</methodname>
<methodparam><type>resource</type><parameter>stmt</parameter></methodparam>
<methodparam
choice="opt"><type>int</type><parameter>row_number</parameter></methodparam>
</methodsynopsis>
@@ -65,7 +65,7 @@
<example>
<title>Iterating through a forward-only cursor</title>
<para>
- If you call <function>db2_fetch_into</function> without a specific row
+ If you call <function>db2_fetch_array</function> without a specific row
number, it automatically retrieves the next row in the result set.
</para>
<programlisting role="php">
@@ -76,7 +76,7 @@
$stmt = db2_prepare($conn, $sql);
$result = db2_execute($stmt, $sql);
-while ($row = db2_fetch_into($result)) {
+while ($row = db2_fetch_array($result)) {
printf ("%-5d %-16s %-32s %10s\n",
$row[0], $row[1], $row[2], $row[3]);
}
@@ -110,7 +110,7 @@
$result = db2_exec($stmt, $sql, array('cursor' => DB2_SCROLLABLE));
$i=2;
-while ($row = db2_fetch_into($result, $i)) {
+while ($row = db2_fetch_array($result, $i)) {
printf ("%-5d %-16s %-32s %10s\n",
$row[0], $row[1], $row[2], $row[3]);
$i = $i + 2;
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-fetch-object.xml?r1=1.1&r2=1.2&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-fetch-object.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-fetch-object.xml:1.1
phpdoc/en/reference/ibm_db2/functions/db2-fetch-object.xml:1.2
--- phpdoc/en/reference/ibm_db2/functions/db2-fetch-object.xml:1.1 Fri Apr
29 10:26:06 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-fetch-object.xml Wed May 18
11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-fetch-object">
<refnamediv>
@@ -119,9 +119,9 @@
&reftitle.seealso;
<para>
<simplelist>
+ <member><function>db2_fetch_array</function></member>
<member><function>db2_fetch_assoc</function></member>
<member><function>db2_fetch_both</function></member>
- <member><function>db2_fetch_into</function></member>
<member><function>db2_fetch_row</function></member>
<member><function>db2_result</function></member>
</simplelist>
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-fetch-row.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-fetch-row.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-fetch-row.xml:1.3
phpdoc/en/reference/ibm_db2/functions/db2-fetch-row.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-fetch-row.xml:1.3 Fri Apr 29
10:26:06 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-fetch-row.xml Wed May 18
11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-fetch-row">
<refnamediv>
@@ -31,7 +31,7 @@
Rather than calling <function>db2_fetch_row</function> and
<function>db2_result</function>, most applications will call one of
<function>db2_fetch_assoc</function>, <function>db2_fetch_both</function>,
- or <function>db2_fetch_into</function> to advance the result set pointer
+ or <function>db2_fetch_array</function> to advance the result set pointer
and return a complete row as an array.
</para>
@@ -109,9 +109,9 @@
&reftitle.seealso;
<para>
<simplelist>
+ <member><function>db2_fetch_array</function></member>
<member><function>db2_fetch_assoc</function></member>
<member><function>db2_fetch_both</function></member>
- <member><function>db2_fetch_into</function></member>
<member><function>db2_fetch_object</function></member>
<member><function>db2_result</function></member>
</simplelist>
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-next-result.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-next-result.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-next-result.xml:1.2
phpdoc/en/reference/ibm_db2/functions/db2-next-result.xml:1.3
--- phpdoc/en/reference/ibm_db2/functions/db2-next-result.xml:1.2 Wed Apr
20 02:16:13 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-next-result.xml Wed May 18
11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-next-result">
<refnamediv>
@@ -74,14 +74,14 @@
$stmt = db2_exec($conn, 'CALL multiResults()');
print "Fetching first result set\n";
- while ($row = db2_fetch_into($stmt)) {
+ while ($row = db2_fetch_array($stmt)) {
var_dump($row);
}
print "\nFetching second result set\n";
$res = db2_next_result($stmt);
if ($res) {
- while ($row = db2_fetch_into($res)) {
+ while ($row = db2_fetch_array($res)) {
var_dump($row);
}
}
@@ -89,7 +89,7 @@
print "\nFetching third result set\n";
$res2 = db2_next_result($stmt);
if ($res2) {
- while ($row = db2_fetch_into($res2)) {
+ while ($row = db2_fetch_array($res2)) {
var_dump($row);
}
}
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-num-rows.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-num-rows.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-num-rows.xml:1.2
phpdoc/en/reference/ibm_db2/functions/db2-num-rows.xml:1.3
--- phpdoc/en/reference/ibm_db2/functions/db2-num-rows.xml:1.2 Sat Apr 16
22:50:00 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-num-rows.xml Wed May 18
11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-num-rows">
<refnamediv>
@@ -31,7 +31,7 @@
statement and branches if the number of rows is 0, consider modifying your
application to attempt to return the first row with one of
<function>db2_fetch_assoc</function>, <function>db2_fetch_both</function>,
- <function>db2_fetch_into</function>, or <function>db2_fetch_row</function>,
+ <function>db2_fetch_array</function>, or <function>db2_fetch_row</function>,
and branch if the fetch function returns &false;.
</para>
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-result.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-result.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-result.xml:1.3
phpdoc/en/reference/ibm_db2/functions/db2-result.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-result.xml:1.3 Fri Apr 29
10:26:06 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-result.xml Wed May 18
11:13:04 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-result">
<refnamediv>
@@ -100,9 +100,9 @@
&reftitle.seealso;
<para>
<simplelist>
+ <member><function>db2_fetch_array</function></member>
<member><function>db2_fetch_assoc</function></member>
<member><function>db2_fetch_both</function></member>
- <member><function>db2_fetch_into</function></member>
<member><function>db2_fetch_object</function></member>
<member><function>db2_fetch_row</function></member>
</simplelist>
http://cvs.php.net/diff.php/phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml
diff -u phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml:1.3
phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml:1.4
--- phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml:1.3 Wed May 4
09:59:44 2005
+++ phpdoc/en/reference/ibm_db2/functions/db2-rollback.xml Wed May 18
11:13:05 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- Generated by xml_proto.php v2.2. Found in /scripts directory of phpdoc.
-->
<refentry id="function.db2-rollback">
<refnamediv>
@@ -78,7 +78,7 @@
if ($conn) {
$stmt = db2_exec($conn, "SELECT count(*) FROM animals");
- $res = db2_fetch_into( $stmt );
+ $res = db2_fetch_array( $stmt );
echo $res[0] . "\n";
// Turn AUTOCOMMIT off
@@ -88,14 +88,14 @@
db2_exec($conn, "DELETE FROM animals");
$stmt = db2_exec($conn, "SELECT count(*) FROM animals");
- $res = db2_fetch_into( $stmt );
+ $res = db2_fetch_array( $stmt );
echo $res[0] . "\n";
// Roll back the DELETE statement
db2_rollback( $conn );
$stmt = db2_exec( $conn, "SELECT count(*) FROM animals" );
- $res = db2_fetch_into( $stmt );
+ $res = db2_fetch_array( $stmt );
echo $res[0] . "\n";
db2_close($conn);
}