- ::operator_partial was not treating the status field as a special caseless
  compare, like operator== does.
This commit is contained in:
Paul Beckingham 2014-10-01 18:58:28 -04:00
parent 5c485f6c53
commit e59a48080c

View file

@ -1065,6 +1065,11 @@ bool Variant::operator_partial (const Variant& other) const
case type_string:
{
right.cast (type_string);
// Status is always compared caseless.
if (left.source () == "status")
return compare (left._string, right._string, false);
int left_len = left._string.length ();
int right_len = right._string.length ();
@ -1089,7 +1094,6 @@ bool Variant::operator_partial (const Variant& other) const
}
case type_duration:
left.cast (type_duration);
return left._duration == right._duration;
}