Add support for range operators (#938)
This commit is contained in:
committed by
Joe Nelson
parent
c72bc37630
commit
59a320fd44
Vendored
+8
-2
@@ -246,8 +246,8 @@ INSERT INTO nullable_integer VALUES (NULL);
|
||||
--
|
||||
|
||||
TRUNCATE TABLE tsearch CASCADE;
|
||||
INSERT INTO tsearch VALUES ('''bar'':2 ''foo'':1');
|
||||
INSERT INTO tsearch VALUES ('''baz'':1 ''qux'':2');
|
||||
INSERT INTO tsearch VALUES (to_tsvector('It''s kind of fun to do the impossible'));
|
||||
INSERT INTO tsearch VALUES (to_tsvector('But also fun to do what is possible'));
|
||||
|
||||
|
||||
--
|
||||
@@ -315,6 +315,12 @@ INSERT INTO grandchild_entities VALUES (3, 'grandchild entity 3', 2, null, null,
|
||||
INSERT INTO grandchild_entities VALUES (4, '(grandchild,entity,4)', 2, null, null, '{"a": {"b":"foo"}}');
|
||||
INSERT INTO grandchild_entities VALUES (5, '(grandchild,entity,5)', 2, null, null, '{"b":"bar"}');
|
||||
|
||||
TRUNCATE TABLE ranges CASCADE;
|
||||
INSERT INTO ranges VALUES (1, '[1,3]');
|
||||
INSERT INTO ranges VALUES (2, '[3,6]');
|
||||
INSERT INTO ranges VALUES (3, '[6,9]');
|
||||
INSERT INTO ranges VALUES (4, '[9,12]');
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
||||
Vendored
+1
@@ -56,6 +56,7 @@ GRANT ALL ON TABLE
|
||||
, entities
|
||||
, child_entities
|
||||
, grandchild_entities
|
||||
, ranges
|
||||
TO postgrest_test_anonymous;
|
||||
|
||||
GRANT INSERT ON TABLE insertonly TO postgrest_test_anonymous;
|
||||
|
||||
Vendored
+8
@@ -1214,6 +1214,14 @@ create table grandchild_entities (
|
||||
jsonb_col jsonb
|
||||
);
|
||||
|
||||
-- Table used for testing range operators
|
||||
|
||||
create table ranges (
|
||||
id integer primary key,
|
||||
range numrange
|
||||
);
|
||||
|
||||
|
||||
-- OpenAPI description tests
|
||||
|
||||
comment on table child_entities is 'child_entities comment';
|
||||
|
||||
Reference in New Issue
Block a user