You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally discovered here, pagination appears to be broken in v0.7.4. Things work ok in v0.7.3. Minimum reproducible example (a simple test in 004_search.sql):
psql:tests/pgtap/004_search.sql:72: ERROR: syntax error at or near ")"
LINE 1: ...WHERE collection = ANY ('{pgstac-test-collection}') AND ();
^
QUERY: EXPLAIN (format json) SELECT 1 FROM items WHERE collection = ANY ('{pgstac-test-collection}') AND ();
CONTEXT: PL/pgSQL function chunker(text) line 8 at EXECUTE
PL/pgSQL function search_rows(text,text,text[],integer) line 25 at FOR over SELECT rows
SQL statement "SELECT jsonb_agg(format_item(i, _fields, hydrate)) FROM search_rows(
full_where,
orderby,
search_where.partitions,
_querylimit
) as i"
PL/pgSQL function search(jsonb) line 66 at SQL statement
The text was updated successfully, but these errors were encountered:
This search against the test database confirms this bug. select * from search('{"token":"next:pgstac-test-item-0001","limit":1,"sortby":[{"field":"datetime", "direction":"asc"}]}');
Originally discovered here, pagination appears to be broken in v0.7.4. Things work ok in v0.7.3. Minimum reproducible example (a simple test in
004_search.sql
):fails with
The text was updated successfully, but these errors were encountered: