From 7f9ae2292cc0ead7fa3d4a917a495d2d6e06fcdc Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Wed, 26 Feb 2014 15:11:07 +0100 Subject: [PATCH] fix geo index comparison --- arangod/V8Server/v8-vocbase.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arangod/V8Server/v8-vocbase.cpp b/arangod/V8Server/v8-vocbase.cpp index 6510dc7d7a..4260e8d870 100644 --- a/arangod/V8Server/v8-vocbase.cpp +++ b/arangod/V8Server/v8-vocbase.cpp @@ -884,6 +884,20 @@ static bool IndexComparator (TRI_json_t const* lhs, return false; } } + value = TRI_LookupArrayJson(lhs, "ignoreNull"); + if (TRI_IsBooleanJson(value)) { + if (! TRI_CheckSameValueJson(value, TRI_LookupArrayJson(rhs, "ignoreNull"))) { + return false; + } + } + } + else if (type == TRI_IDX_TYPE_GEO2_INDEX) { + value = TRI_LookupArrayJson(lhs, "ignoreNull"); + if (TRI_IsBooleanJson(value)) { + if (! TRI_CheckSameValueJson(value, TRI_LookupArrayJson(rhs, "ignoreNull"))) { + return false; + } + } } else if (type == TRI_IDX_TYPE_FULLTEXT_INDEX) { // minLength