Skip to content
Browse files

BUGFIX: Fix Versioned's stage_unique mode on PostgreSQL.

  • Loading branch information...
1 parent ed0341e commit 87685eefdd9689df9947e031036e09f132b63d62 @sminnee sminnee committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 model/Versioned.php
View
2 model/Versioned.php
@@ -208,7 +208,7 @@ function augmentSQL(SQLQuery &$query, DataQuery &$dataQuery = null) {
$tempName = 'ExclusionarySource_'.$excluding;
$excludingTable = $baseTable . ($excluding && $excluding != $this->defaultStage ? "_$excluding" : '');
- $query->addWhere('"'.$baseTable.'"."ID" NOT IN (SELECT ID FROM "'.$tempName.'")');
+ $query->addWhere('"'.$baseTable.'"."ID" NOT IN (SELECT "ID" FROM "'.$tempName.'")');
$query->renameTable($tempName, $excludingTable);
}
break;

0 comments on commit 87685ee

Please sign in to comment.
Something went wrong with that request. Please try again.