Skip to content

Commit

Permalink
Fix CQL2 parser for BETWEEN operator (#251)
Browse files Browse the repository at this point in the history
* Fix CQL2 parser for BETWEEN operator

* Update the test
  • Loading branch information
drnextgis authored Mar 13, 2024
1 parent 51f19dc commit 3525a01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pgstac/sql/002b_cql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ BEGIN
IF op = 'between' THEN
args = jsonb_build_array(
args->0,
args->1->0,
args->1->1
args->1,
args->2
);
END IF;

Expand Down
2 changes: 1 addition & 1 deletion src/pgstac/tests/pgtap/004_search.sql
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ SELECT results_eq($$
"op": "between",
"args": [
{ "property": "eo:cloud_cover" },
[ 0, 50 ]
0, 50
]
}
}
Expand Down

0 comments on commit 3525a01

Please sign in to comment.