From 13bbcba3f975065151c19cfaafe1c71e761aceb6 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 17 Jun 2014 01:10:16 -0400 Subject: [PATCH] Variant - ::operator== uses a caseless compare for the status attribute. --- src/Variant.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Variant.cpp b/src/Variant.cpp index 056e05f0d..7f3f7102e 100644 --- a/src/Variant.cpp +++ b/src/Variant.cpp @@ -840,10 +840,13 @@ bool Variant::operator== (const Variant& other) const case type_boolean: case type_integer: case type_real: - right.cast (type_string); - return left._string == right._string; - case type_string: + right.cast (type_string); + + // Status is always compared caseless. + if (left.source () == "status") + return compare (left._string, right._string, false); + return left._string == right._string; case type_date: