The sql used in styles_update_7210() fails when using postgresql as the backend. Changing the "HAVING repetitions > 1" to "HAVING count(*) > 1" as below and might work for all backends

$names = db_query("SELECT name, COUNT(*) as repetitions FROM {styles} GROUP BY name HAVING count(*) > 1")->fetchCol();

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aaron’s picture

Status: Active » Needs review
FileSize
1.44 KB

This one should work. I don't have pgSQL installed, so can't test it for certain.

aaron’s picture

Status: Needs review » Fixed

and committed. please re-open if this still fails for postgresql. thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.