From 323fd4aa0f73956016d8b88f39ffc469672ee750 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 3 Oct 2012 15:34:39 +1300 Subject: [PATCH] FIX: Fixed ef81318aea3c24a898a02f8c6fdc0ec2af66a9c9 for PostgreSQL by quoting fields. --- model/ManyManyList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/ManyManyList.php b/model/ManyManyList.php index 76833a3a9..e3e1a1b27 100644 --- a/model/ManyManyList.php +++ b/model/ManyManyList.php @@ -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 {