|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-30 13:29 UTC] tony2001@php.net
[2006-04-07 01:00 UTC] php-bugs at lists dot php dot net
[2007-08-09 22:36 UTC] apike at sfu dot ca
[2007-10-04 11:24 UTC] gizmo dot rafal at poczta dot fm
[2008-01-14 17:26 UTC] stoto98 at yahoo dot fr
[2008-09-24 16:10 UTC] chmbox dot spammenot at thecompsmith dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 18:00:02 2025 UTC |
Description: ------------ When $query parameter for PDO::query contains ' :A and ? (as part of data) query fails with error Invalid parameter number: mixed named and positional parameters. This behavior is appear with PDO mysql driver. In PHP 5.1.1 is not this bug present. Reproduce code: --------------- $pdo->query("insert into foo (bar) values ('\\ ? :A')"); Expected result: ---------------- SQL syntax is Ok so query should be proccessed without error. Actual result: -------------- Warning: PDO::query() [function.query]: SQLSTATE[HY093]: Invalid parameter number: mixed named and positional parameters in ... And query fails.