Skip to content

Commit

Permalink
FIX: Fixed ef81318 for PostgreSQL by quoting fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Minnee committed Oct 3, 2012
1 parent 4e1b6af commit 323fd4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/ManyManyList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 323fd4a

Please sign in to comment.