Permalink
Browse files

FIX: Fixed ef81318 for PostgreSQL by quoting fields.

  • Loading branch information...
1 parent 4e1b6af commit 323fd4aa0f73956016d8b88f39ffc469672ee750 @sminnee sminnee committed Oct 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 model/ManyManyList.php
View
@@ -176,7 +176,7 @@ function getExtraData($componentName, $itemID) {
// @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 {

0 comments on commit 323fd4a

Please sign in to comment.