From c7cba4a85bbeb27b21073c04e537ae4dc4b0e856 Mon Sep 17 00:00:00 2001 From: Xavier Robin <xavier.robin@unibas.ch> Date: Wed, 16 Aug 2023 13:08:10 +0200 Subject: [PATCH] fix: try with a different sorting syntax --- modules/conop/src/compound_lib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/conop/src/compound_lib.cc b/modules/conop/src/compound_lib.cc index b875a3b65..7d906fb3f 100644 --- a/modules/conop/src/compound_lib.cc +++ b/modules/conop/src/compound_lib.cc @@ -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 -- GitLab