Commit 958c25cc authored by bcoleman's avatar bcoleman Committed by Ra Mänd
Browse files

Issue #3079042 by Ben Coleman: Pending Update #7009 Failed on MSSQL/PostgreSQL

parent a8894ad5
......@@ -425,8 +425,7 @@ function field_collection_update_7009(&$sandbox) {
->fields('t', array("{$sandbox['field_name']}_revision_id"))
->range($sandbox['current_field_collection_item'], $items_per_pass)
->groupBy("t.{$sandbox['field_name']}_revision_id");
$query->addExpression("COUNT(t.{$sandbox['field_name']}_revision_id)", 'vidcount');
$query->havingCondition('vidcount', 2, '>=');
$query->having("COUNT(t.{$sandbox['field_name']}_revision_id) >= 2");
$vids = $query->execute()->fetchCol();
// Each revision ID that occurs more than once.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment