svn: /phpdoc/fr/trunk/reference/oci8/functions/ oci-bind-by-name.xml
| From: | Jean-Sebastien Hedde | Date: | Sun, 16 Mar 2014 15:37:32 +0000 |
| Subject: | svn: /phpdoc/fr/trunk/reference/oci8/functions/ oci-bind-by-name.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-10402@lists.php.net to get a copy of this message | ||
jeanseb Sun, 16 Mar 2014 15:37:32 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=333015
Log:
Sync with EN
Changed paths:
U phpdoc/fr/trunk/reference/oci8/functions/oci-bind-by-name.xml
Modified: phpdoc/fr/trunk/reference/oci8/functions/oci-bind-by-name.xml
===================================================================
--- phpdoc/fr/trunk/reference/oci8/functions/oci-bind-by-name.xml 2014-03-16 15:27:28 UTC (rev
333014)
+++ phpdoc/fr/trunk/reference/oci8/functions/oci-bind-by-name.xml 2014-03-16 15:37:32 UTC (rev
333015)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 331842 Maintainer: yannick Status: ready -->
+<!-- EN-Revision: 332824 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="function.oci-bind-by-name" xmlns="http://docbook.org/ns/docbook">
@@ -225,9 +225,15 @@
<listitem>
<para>
<constant>SQLT_RSET</constant> - pour les curseurs créés
- avec la fonction <function>oci_new_cursor</function>.
+ avec la fonction <function>oci_new_cursor</function>;
</para>
</listitem>
+ <listitem>
+ <para>
+ <constant>SQLT_BOL</constant> ou <constant>OCI_B_BOL</constant>
+ - pour les booléens (requiert OCI8 2.0.7 et Oracle Database 12c)
+ </para>
+ </listitem>
</itemizedlist>
</para>
</listitem>
@@ -760,6 +766,39 @@
</programlisting>
</example>
</para>
+ <para>
+ <example>
+ <title>Association sur un booléen dans un script PL/SQL</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$conn = oci_connect('hr', 'welcome', 'localhost/XE');
+if (!$conn) {
+ $e = oci_error();
+ trigger_error(htmlentities($e['message']), E_USER_ERROR);
+}
+
+$plsql =
+ "begin
+ :output1 := true;
+ :output2 := false;
+ end;";
+
+$s = oci_parse($c, $plsql);
+oci_bind_by_name($s, ':output1', $output1, -1, OCI_B_BOL);
+oci_bind_by_name($s, ':output2', $output2, -1, OCI_B_BOL);
+oci_execute($s);
+var_dump($output1); // true
+var_dump($output2); // false
+
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+
+
</refsect1>
<refsect1 role="returnvalues">