svn: /phpdoc/en/trunk/reference/pdo/pdostatement/ execute.xml
| From: | Kalle Sommer Nielsen | Date: | Wed, 20 Oct 2010 05:04:28 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pdo/pdostatement/ execute.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-7253@lists.php.net to get a copy of this message | ||
kalle Wed, 20 Oct 2010 05:04:28 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=304528
Log:
Fixed bug #51559 (SQLSTATE[HY093]: Invalid parameter number (error in docs or calculation))
Bug: http://bugs.php.net/51559 (Open) SQLSTATE[HY093]:
Invalid parameter number (error in docs or calculation)
Changed paths:
U phpdoc/en/trunk/reference/pdo/pdostatement/execute.xml
Modified: phpdoc/en/trunk/reference/pdo/pdostatement/execute.xml
===================================================================
--- phpdoc/en/trunk/reference/pdo/pdostatement/execute.xml 2010-10-20 03:12:37 UTC (rev 304527)
+++ phpdoc/en/trunk/reference/pdo/pdostatement/execute.xml 2010-10-20 05:04:28 UTC (rev 304528)
@@ -42,6 +42,12 @@
you cannot bind two values to a single named parameter in an IN()
clause.
</para>
+ <para>
+ You cannot bind more values than specified, if more keys in
+ <parameter>input_parameters</parameter> exists than in the SQL specified
+ in the <methodname>PDO::prepare</methodname> then the statement will
+ fail and an error is emitted.
+ </para>
</listitem>
</varlistentry>
</variablelist>
@@ -55,6 +61,31 @@
</para>
</refsect1>
+ <refsect1 role="changelog">
+ &reftitle.changelog;
+ <para>
+ <informaltable>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.2.0</entry>
+ <entry>
+ The keys from <parameter>input_parameters</parameter> must match the ones
+ declared in the SQL. Before PHP 5.2.0 this was silently ignored.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </informaltable>
+ </para>
+ </refsect1>
+
<refsect1 role="examples">
&reftitle.examples;
<example><title>Execute a prepared statement with bound variables</title>