cvs: pear /LiveUser_Admin/Storage SQL.php
| From: | Lukas Smith | Date: | Mon, 17 Oct 2005 19:22:17 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/Storage SQL.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-35653@lists.php.net to get a copy of this message | ||
lsmith Mon Oct 17 15:22:17 2005 EDT
Modified files:
/pear/LiveUser_Admin/Storage SQL.php
Log:
- fixed bug in handling of _checkExplicitTable() return value in findTables() (bug #5706)
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Storage/SQL.php?r1=1.40&r2=1.41&ty=u
Index: pear/LiveUser_Admin/Storage/SQL.php
diff -u pear/LiveUser_Admin/Storage/SQL.php:1.40 pear/LiveUser_Admin/Storage/SQL.php:1.41
--- pear/LiveUser_Admin/Storage/SQL.php:1.40 Mon Oct 17 11:17:23 2005
+++ pear/LiveUser_Admin/Storage/SQL.php Mon Oct 17 15:22:10 2005
@@ -57,7 +57,7 @@
* @author Bjoern Kraus <krausbn@php.net>
* @copyright 2002-2005 Markus Wolff
* @license http://www.gnu.org/licenses/lgpl.txt
- * @version CVS: $Id: SQL.php,v 1.40 2005/10/17 15:17:23 lsmith Exp $
+ * @version CVS: $Id: SQL.php,v 1.41 2005/10/17 19:22:10 lsmith Exp $
* @link http://pear.php.net/LiveUser_Admin
*/
@@ -519,7 +519,7 @@
);
return false;
}
- return $match[1];
+ return $match;
}
/**
@@ -549,7 +549,7 @@
} elseif ($match === false) {
return false;
}
- $tables[$match] = true;
+ $tables[$match[1]] = true;
unset($fields_tmp[$key]);
// append table prefix and AS to this field
$fields[$key] =
$this->prefix.$this->alias[$match[1]].'.'.$match[2].' AS '.$match[2];
@@ -563,7 +563,7 @@
} elseif ($match === false) {
return false;
}
- $tables[$match] = true;
+ $tables[$match[1]] = true;
unset($fields_tmp[$field]);
// append prefix to this filter
$filters[$this->prefix.$this->alias[$match[1]].'.'.$match[2]] = $value;
@@ -577,7 +577,7 @@
} elseif ($match === false) {
return false;
}
- $tables[$match] = true;
+ $tables[$match[1]] = true;
unset($orders_tmp[$field]);
// append prefix to this order by field
$orders[$this->prefix.$this->alias[$match[1]].'.'.$match[2]] = $value;