reference/oci8/functions/oci-execute.xml
5e41012cfdf8f2eff5fa56de446c7656afac536c
...
...
@@ -11,7 +11,7 @@
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>oci_execute</methodname>
13
13
<methodparam><type>resource</type><parameter>statement</parameter></methodparam>
14
-
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>OCI_COMMIT_ON_SUCCESS</initializer></methodparam>
14
+
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer><constant>OCI_COMMIT_ON_SUCCESS</constant></initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
Executes a <parameter>statement</parameter> previously returned
...
...
@@ -75,10 +75,7 @@
75
75
</row>
76
76
<row>
77
77
<entry><constant>OCI_NO_AUTO_COMMIT</constant></entry>
78
-
<entry>Do not automatically commit changes. Prior to PHP
79
-
5.3.2 (PECL OCI8 1.4)
80
-
use <constant>OCI_DEFAULT</constant> which is equivalent
81
-
to <constant>OCI_NO_AUTO_COMMIT</constant>.</entry>
78
+
<entry>Do not automatically commit changes.</entry>
82
79
</row>
83
80
</tbody>
84
81
</tgroup>
...
...
@@ -188,7 +185,7 @@ $conn = oci_connect('hr', 'welcome', 'localhost/XE');
188
185
$stid = oci_parse($conn, 'INSERT INTO mytab (col1) VALUES (:bv)');
189
186
oci_bind_by_name($stid, ':bv', $i, 10);
190
187
for ($i = 1; $i <= 5; ++$i) {
191
-
oci_execute($stid, OCI_NO_AUTO_COMMIT); // use OCI_DEFAULT for PHP <= 5.3.1
188
+
oci_execute($stid, OCI_NO_AUTO_COMMIT);
192
189
}
193
190
oci_commit($conn); // commits all new values: 1, 2, 3, 4, 5
194
191

...
...
@@ -283,7 +280,6 @@ for ($i = 1; $i <= oci_num_fields($stid); ++$i) {
283
280
</refsect1>
284
281

285
282
</refentry>
286
-

287
283
<!-- Keep this comment at the end of the file
288
284
Local variables:
289
285
mode: sgml
290
286