Bug #9197 [NEW]: DB_QueryTool does not save
| From: | martin dot kaffanke at gmx dot at | Date: | Tue, 31 Oct 2006 10:07:13 +0000 |
| Subject: | Bug #9197 [NEW]: DB_QueryTool does not save | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-8692@lists.php.net to get a copy of this message | ||
From: martin dot kaffanke at gmx dot at
Operating system: ubuntu linux
Package version:
PHP version: 4.4.3
Package: Documentation
Bug Type: Bug
Bug description: DB_QueryTool does not save
Description:
------------
The Data wasn't saved correctly on an update. Now with backtics it works
for me:
--- /usr/share/php/DB/QueryTool/Query.php 2006-09-04
10:48:39.000000000 +0200
+++ lib/DB/QueryTool/Query.php 2006-10-31 10:59:19.000000000 +0100
@@ -608,7 +608,7 @@
$values = array();
foreach ($newData as $key => $aData) { // quote the data
//$values[] = "{$this->table}.$key=". ($raw ? $aData :
$this->db->quote($aData));
- $values[] = "$key=". ($raw ? $aData :
$this->db->quote($aData));
+ $values[] = "
$key=". ($raw ? $aData :
$this->db->quote($aData));
}
$query['set'] = implode(',', $values);
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=9197&edit=1
--