|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-17 16:22 UTC] tony2001@php.net
[2006-01-22 19:30 UTC] iliaa@php.net
[2006-01-30 01:00 UTC] php-bugs at lists dot php dot net
[2006-04-03 12:16 UTC] phpbugs at filofox dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 05:00:01 2025 UTC |
Description: ------------ Using a param (e.g. :id) more than once in a prepared statement used to work with my older PHP 5.0.4 (PDO 1.0.2 and PDO_MySQL 1.0.1) but now breaks with PHP 5.1.2 (using default PDO and PDO_MySQL ext included in download) Reproduce code: --------------- $stmt = $db->prepare("SELECT id, name FROM table WHERE id = :id OR parent = :id"); $stmt->assignValue(':id', 1, PDO::PARAM_INT); $stmt->execute(); Expected result: ---------------- Should work Actual result: -------------- Failed with General Error