Skip to content
Snippets Groups Projects
Commit 6fd73703 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 5d70aa89
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment