diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-04-25 17:57:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-04-25 17:57:03 +0000 |
commit | 6fd73703d9c958de86baafb98e2f8b705220d556 (patch) | |
tree | b3f83d124e50f06d72597f9b6d759a86c827a76e | |
parent | 5d70aa892c34be3bd574f4292d5ea34a6f617d71 (diff) | |
download | brdo-6fd73703d9c958de86baafb98e2f8b705220d556.tar.gz brdo-6fd73703d9c958de86baafb98e2f8b705220d556.tar.bz2 |
- Patch #21249 by patryk: made SQL query work with PostgreSQL by correcting a 'GROUP BY'-clause.
-rw-r--r-- | includes/locale.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index 061106d74..1a764c6cc 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -729,7 +729,7 @@ function _locale_export_po($language) { $result = db_query("SELECT s.lid, s.source, s.location, t.translation, t.plid, t.plural FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid WHERE t.locale = '%s' ORDER BY t.plid, t.plural", $language); } else { - $result = db_query("SELECT s.lid, s.source, s.location, t.plid, t.plural FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid GROUP BY s.lid ORDER BY t.plid, t.plural"); + $result = db_query("SELECT s.lid, s.source, s.location, t.plid, t.plural FROM {locales_source} s INNER JOIN {locales_target} t ON s.lid = t.lid ORDER BY t.plid, t.plural"); } // Build array out of the database results |