FIX: Fixed ef81318aea for PostgreSQL by quoting fields.

This commit is contained in:
Sam Minnee 2012-10-03 15:34:39 +13:00
parent 4e1b6af10f
commit 323fd4aa0f

View File

@ -176,7 +176,7 @@ class ManyManyList extends RelationList {
// @todo Optimize into a single query instead of one per extra field
if($this->extraFields) {
foreach($this->extraFields as $fieldName => $dbFieldSpec) {
$query = new SQLQuery($fieldName, array("\"$this->joinTable\""));
$query = new SQLQuery("\"$fieldName\"", array("\"$this->joinTable\""));
if($filter = $this->foreignIDFilter()) {
$query->setWhere($filter);
} else {