feat: Support accessing array items and fields of composite types through json operators
This is supported in select=, in filters and in order=. Resolves #1543 Resolves #2075 Signed-off-by: Wolfgang Walther <walther@technowledgy.de>
This commit is contained in:
committed by
Wolfgang Walther
parent
87bd8e72cf
commit
9f1b5c0a81
Vendored
+18
@@ -2427,3 +2427,21 @@ BEGIN
|
||||
END IF;
|
||||
END
|
||||
$do$;
|
||||
|
||||
-- https://github.com/PostgREST/postgrest/issues/1543
|
||||
CREATE TYPE complex AS (
|
||||
r double precision,
|
||||
i double precision
|
||||
);
|
||||
|
||||
CREATE TABLE test.fav_numbers (
|
||||
num complex,
|
||||
person text
|
||||
);
|
||||
|
||||
-- https://github.com/PostgREST/postgrest/issues/2075
|
||||
create table test.arrays (
|
||||
id int primary key,
|
||||
numbers int[],
|
||||
numbers_mult int[][]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user