Skip to content

Commit 3525a01

Browse files
authored
Fix CQL2 parser for BETWEEN operator (#251)
* Fix CQL2 parser for BETWEEN operator * Update the test
1 parent 51f19dc commit 3525a01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pgstac/sql/002b_cql.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ BEGIN
344344
IF op = 'between' THEN
345345
args = jsonb_build_array(
346346
args->0,
347-
args->1->0,
348-
args->1->1
347+
args->1,
348+
args->2
349349
);
350350
END IF;
351351

src/pgstac/tests/pgtap/004_search.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ SELECT results_eq($$
401401
"op": "between",
402402
"args": [
403403
{ "property": "eo:cloud_cover" },
404-
[ 0, 50 ]
404+
0, 50
405405
]
406406
}
407407
}

0 commit comments

Comments
 (0)