Skip to content

Commit cbb508a

Browse files
committed
test: loadtests for url-use-legacy-target-names
1 parent fa2e9f5 commit cbb508a

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

test/load/fixtures.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ CREATE TABLE test.roles (
3333
character TEXT
3434
);
3535

36+
CREATE TABLE test.awards (
37+
film INT REFERENCES test.films,
38+
name TEXT PRIMARY KEY,
39+
year INT
40+
);
41+
42+
CREATE TABLE test.specs (
43+
film INT PRIMARY KEY REFERENCES test.films,
44+
runtime TIME
45+
);
3646

3747
CREATE TABLE test.authors_only ();
3848

test/load/targets.http

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,7 @@ Prefer: tx=commit
4949
# Permission denied errors
5050
GET http://postgrest/actors_1
5151
Prefer: tx=commit
52+
53+
# Testing the url-use-legacy-target-names configuration
54+
GET http://postgrest/films?select=all_roles:roles(*),awards_2026:awards(*),technical_specs:specs(*)&roles.order=character&awards.year=eq.2026&specs.runtime=not.is.null&limit=1
55+
Prefer: tx=commit

0 commit comments

Comments
 (0)