- Patch #21249 by patryk: made SQL query work with PostgreSQL by correcting a 'GROUP BY'-clause.

4.7.x
Dries Buytaert 2005-04-25 17:57:03 +00:00
parent 5d70aa892c
commit 6fd73703d9
1 changed files with 1 additions and 1 deletions

View File

@ -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