Skip to content
Snippets Groups Projects
Commit c7cba4a8 authored by Xavier Robin's avatar Xavier Robin
Browse files

fix: try with a different sorting syntax

parent 2d694306
Branches
Tags
No related merge requests found
......@@ -559,7 +559,7 @@ CompoundPtr CompoundLib::FindCompound(const String& id,
" WHERE " + by + "=? AND dialect='"+String(1, char(dialect))+"'";
if(obsolete_available_) {
// Prefer active compounds, then the ones with a replacement
query+=" ORDER BY obsolete, replaced_by NULLS LAST";
query+=" ORDER BY obsolete, replaced_by IS NULL";
}
// Run the query
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment