reference/uodbc/functions/odbc-fetch-row.xml
6459ee8883c1f09d2b6af1b22e4149e9d55d4f4a
...
...
@@ -9,8 +9,8 @@
9
9
&reftitle.description;
10
10
<methodsynopsis>
11
11
<type>bool</type><methodname>odbc_fetch_row</methodname>
12
-
<methodparam><type>resource</type><parameter>result_id</parameter></methodparam>
13
-
<methodparam choice="opt"><type>int</type><parameter>row_number</parameter></methodparam>
12
+
<methodparam><type>Odbc\Result</type><parameter>statement</parameter></methodparam>
13
+
<methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>row</parameter><initializer>&null;</initializer></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
Fetches a row of the data that was returned by <function>odbc_do</function>
...
...
@@ -24,30 +24,30 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>result_id</parameter></term>
27
+
<term><parameter>statement</parameter></term>
28
28
<listitem>
29
29
<para>
30
-
The result identifier.
30
+
&odbc.result.object;.
31
31
</para>
32
32
</listitem>
33
33
</varlistentry>
34
34
<varlistentry>
35
-
<term><parameter>row_number</parameter></term>
35
+
<term><parameter>row</parameter></term>
36
36
<listitem>
37
37
<para>
38
-
If <parameter>row_number</parameter> is not specified,
38
+
If <parameter>row</parameter> is not specified,
39
39
<function>odbc_fetch_row</function> will try to fetch the next row in
40
40
the result set. Calls to <function>odbc_fetch_row</function> with and
41
-
without <parameter>row_number</parameter> can be mixed.
41
+
without <parameter>row</parameter> can be mixed.
42
42
</para>
43
43
<para>
44
44
To step through the result more than once, you can call
45
45
<function>odbc_fetch_row</function> with
46
-
<parameter>row_number</parameter> 1, and then continue doing
46
+
<parameter>row</parameter> 1, and then continue doing
47
47
<function>odbc_fetch_row</function> without
48
-
<parameter>row_number</parameter> to review the result. If a driver
48
+
<parameter>row</parameter> to review the result. If a driver
49
49
doesn't support fetching rows by number, the
50
-
<parameter>row_number</parameter> parameter is ignored.
50
+
<parameter>row</parameter> parameter is ignored.
51
51
</para>
52
52
</listitem>
53
53
</varlistentry>
...
...
@@ -60,8 +60,45 @@
60
60
Returns &true; if there was a row, &false; otherwise.
61
61
</para>
62
62
</refsect1>
63
-
</refentry>
64
63

64
+
<refsect1 role="errors">
65
+
&reftitle.errors;
66
+
<simpara>
67
+
An <constant>E_WARNING</constant> is emitted when <parameter>row</parameter>
68
+
is equal or less than zero.
69
+
</simpara>
70
+
</refsect1>
71
+

72
+
<refsect1 role="changelog">
73
+
&reftitle.changelog;
74
+
<informaltable>
75
+
<tgroup cols="2">
76
+
<thead>
77
+
<row>
78
+
<entry>&Version;</entry>
79
+
<entry>&Description;</entry>
80
+
</row>
81
+
</thead>
82
+
<tbody>
83
+
&odbc.changelog.result-param;
84
+
<row>
85
+
<entry>8.4.0</entry>
86
+
<entry>
87
+
An <constant>E_WARNING</constant> is now emitted when <parameter>row</parameter>
88
+
is equal or less than zero.
89
+
</entry>
90
+
</row>
91
+
<row>
92
+
<entry>8.0.0</entry>
93
+
<entry>
94
+
<parameter>row</parameter> is now nullable.
95
+
</entry>
96
+
</row>
97
+
</tbody>
98
+
</tgroup>
99
+
</informaltable>
100
+
</refsect1>
101
+
</refentry>
65
102
<!-- Keep this comment at the end of the file
66
103
Local variables:
67
104
mode: sgml
68
105