GH# 267: JSON 'find' not returning empty result if object is expected but another value is found

GH# 267: JSON 'find' not returning empty result if object is expected
but another value is found
This commit is contained in:
Aleksandar Fabijanic
2013-09-14 22:33:28 -05:00
parent 106d011db0
commit 154c6969c2
3 changed files with 15 additions and 1 deletions

View File

@@ -162,6 +162,9 @@ Var Query::find(const std::string& path) const
Object o = result.extract<Object>();
result = o.get(name);
}
else
result.empty();
}
if (!result.isEmpty() && !indexes.empty())