Skip to content
This repository
Browse code

BUGFIX: Fix Versioned's stage_unique mode on PostgreSQL.

  • Loading branch information...
commit 87685eefdd9689df9947e031036e09f132b63d62 1 parent ed0341e
Sam Minnée authored August 23, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  model/Versioned.php
2  model/Versioned.php
@@ -208,7 +208,7 @@ function augmentSQL(SQLQuery &$query, DataQuery &$dataQuery = null) {
208 208
 				$tempName = 'ExclusionarySource_'.$excluding;
209 209
 				$excludingTable = $baseTable . ($excluding && $excluding != $this->defaultStage ? "_$excluding" : '');
210 210
 
211  
-				$query->addWhere('"'.$baseTable.'"."ID" NOT IN (SELECT ID FROM "'.$tempName.'")');
  211
+				$query->addWhere('"'.$baseTable.'"."ID" NOT IN (SELECT "ID" FROM "'.$tempName.'")');
212 212
 				$query->renameTable($tempName, $excludingTable);
213 213
 			}
214 214
 			break;

0 notes on commit 87685ee

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