Skip to content

Commit

Permalink
fixed json range filter to work with int64 values; fixed #3381; added…
Browse files Browse the repository at this point in the history
… regressions to test 336
  • Loading branch information
tomatolog committed Mar 21, 2023
1 parent a06a553 commit 6fbc418
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 48 deletions.
6 changes: 3 additions & 3 deletions src/jsonqueryfilter.cpp
Expand Up @@ -914,8 +914,8 @@ std::unique_ptr<FilterTreeNode_t> FilterTreeConstructor_c::ConstructRangeFilter
return nullptr;
}

int iLessVal = -1;
int iGreaterVal = -1;
int64_t iLessVal = -1;
int64_t iGreaterVal = -1;
if ( ( bLess && !tLess.IsNum() ) || ( bGreater && !tGreater.IsNum() ) )
{
JsonObj_c tDateFormat = tColumn.GetStrItem ( "format", m_sError, true );
Expand Down Expand Up @@ -945,7 +945,7 @@ std::unique_ptr<FilterTreeNode_t> FilterTreeConstructor_c::ConstructRangeFilter
{
if ( bLess && tLess.IsInt() )
iLessVal = tLess.IntVal();
if ( bGreater && tGreater.IntVal() )
if ( bGreater && tGreater.IsInt() )
iGreaterVal = tGreater.IntVal();
}

Expand Down

0 comments on commit 6fbc418

Please sign in to comment.