From 4f657506ac345bd16e99dea9d84bc5af3a07eb9f Mon Sep 17 00:00:00 2001 From: JvdBossche <9381682+JvdBossche@users.noreply.github.com> Date: Wed, 13 Feb 2019 11:57:16 +0100 Subject: [PATCH] Update logger_prefs.sql When you have only OR in a where-clause, the (dummy) first clause should not be "1=1" (always TRUE, like used when the where-clause is composed of ANDs), but "1=0" to have an always FALSE to start out with. --- source/tables/logger_prefs.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tables/logger_prefs.sql b/source/tables/logger_prefs.sql index 3b24047..dd96c08 100644 --- a/source/tables/logger_prefs.sql +++ b/source/tables/logger_prefs.sql @@ -259,7 +259,7 @@ begin set pref_name = upper(pref_name), pref_type = upper(pref_type) - where 1=1 + where 1=0 or pref_name != upper(pref_name) or pref_type != upper(pref_type);