Simply putting the issue raised in http://drupal.org/node/502048 in the bug queue of the Location module. IFNULL is a MySQL-only function, while COALESCE works in both MySQL and PostgreSQL. Similar issue was raised in http://drupal.org/node/319441 as the Comment Subscribe module suffered from the same issue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dcostalis’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

This is still an issue in the latest 3.x build, and causes the distance filter to break. Changing "IFNULL" to "COALESCE" on line 122 of earth.inc fixes the problem for Postgres

IcanDivideBy0’s picture

Priority: Normal » Critical
Status: Active » Needs review
FileSize
729 bytes

Since it totally breaks the SQL query, I think this is critical.

Liam Morland’s picture

Issue tags: +PostgreSQL
podarok’s picture

Priority: Critical » Normal
Status: Needs review » Active

#1931088: [META] Fixing tests tests were broken, so triggering to active

podarok’s picture

Status: Active » Needs review

bot

podarok’s picture

Status: Needs review » Fixed

#2 commited pushed to 7.x-3.x
thanks!!!

podarok’s picture

http://drupal.org/node/1942736 tagged in alpha release

Status: Fixed » Closed (fixed)
Issue tags: -PostgreSQL

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