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
...
...
@@ -66,13 +66,6 @@
66
66
is the default.</entry>
67
67
</row>
68
68
<row>
69
-
<entry><constant>OCI_DEFAULT</constant></entry>
70
-
<entry>Obsolete as of PHP 5.3.2 (PECL OCI8 1.4) but still
71
-
available for backward compatibility. Use the
72
-
equivalent <constant>OCI_NO_AUTO_COMMIT</constant> in new
73
-
code.</entry>
74
-
</row>
75
-
<row>
76
69
<entry><constant>OCI_DESCRIBE_ONLY</constant></entry>
77
70
<entry>Make query meta data available to functions
78
71
like <function>oci_field_name</function> but do not
...
...
@@ -82,17 +75,14 @@
82
75
</row>
83
76
<row>
84
77
<entry><constant>OCI_NO_AUTO_COMMIT</constant></entry>
85
-
<entry>Do not automatically commit changes. Prior to PHP
86
-
5.3.2 (PECL OCI8 1.4)
87
-
use <constant>OCI_DEFAULT</constant> which is an alias
88
-
for <constant>OCI_NO_AUTO_COMMIT</constant>.</entry>
78
+
<entry>Do not automatically commit changes.</entry>
89
79
</row>
90
80
</tbody>
91
81
</tgroup>
92
82
</table>
93
83
</para>
94
84
<para>
95
-
Using <constant>OCI_NO_AUTO_COMMIT</constant> mode starts a
85
+
Using <constant>OCI_NO_AUTO_COMMIT</constant> mode starts or continues a
96
86
transaction. Transactions are automatically rolled back when
97
87
the connection is closed, or when the script ends. Explicitly
98
88
call <function>oci_commit</function> to commit a transaction,
...
...
@@ -195,7 +185,7 @@ $conn = oci_connect('hr', 'welcome', 'localhost/XE');
195
185
$stid = oci_parse($conn, 'INSERT INTO mytab (col1) VALUES (:bv)');
196
186
oci_bind_by_name($stid, ':bv', $i, 10);
197
187
for ($i = 1; $i <= 5; ++$i) {
198
-
oci_execute($stid, OCI_NO_AUTO_COMMIT); // use OCI_DEFAULT for PHP <= 5.3.1
188
+
oci_execute($stid, OCI_NO_AUTO_COMMIT);
199
189
}
200
190
oci_commit($conn); // commits all new values: 1, 2, 3, 4, 5
201
191

...
...
@@ -278,12 +268,6 @@ for ($i = 1; $i <= oci_num_fields($stid); ++$i) {
278
268
local <function>oci_parse</function> function does not.
279
269
</para>
280
270
</note>
281
-
<note>
282
-
<para>
283
-
In PHP versions before 5.0.0 use <function>ociexecute</function>
284
-
instead. &oci.name.compat.note;
285
-
</para>
286
-
</note>
287
271
</refsect1>
288
272

289
273
<refsect1 role="seealso">
...
...
@@ -296,7 +280,6 @@ for ($i = 1; $i <= oci_num_fields($stid); ++$i) {
296
280
</refsect1>
297
281

298
282
</refentry>
299
-

300
283
<!-- Keep this comment at the end of the file
301
284
Local variables:
302
285
mode: sgml
303
286