- Patch #21249 by patryk: made SQL query work with PostgreSQL by correcting a 'GROUP BY'-clause.
parent
5d70aa892c
commit
6fd73703d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue