|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-12 07:10 UTC] cox@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 05:00:01 2025 UTC |
Description: ------------ When attempting to use the autoUpdate() function within PEAR DB I was continually getting error msgs. Upon further inspection I traced the problem to an apparent typo on ~line 562 of the /usr/share/pear/DB/common.php file. Here is a snippet of the code I found there: function buildManipSQL($table, $table_fields, $mode, $where = false) <...> if ($where) { $sql .= " WHERE $sql"; <--BAD CODE [rsh] } <...> } Here is how I modified it so that it now works as advertised. function buildManipSQL($table, $table_fields, $mode, $where = false) <...> if ($where) { $sql .= " WHERE $where"; //This code works! [rsh] } <...> } I hope that helps. Thanks for all your hard work!