Skip to content

Commit 76a9a94

Browse files
committed
test: postgrest 11 pre-release
1 parent 320ac92 commit 76a9a94

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/db/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
version: '3'
44
services:
55
rest:
6-
image: postgrest/postgrest:v10.1.2
6+
image: postgrest/postgrest:v10.2.0.20230407
77
ports:
88
- '3000:3000'
99
environment:

test/transforms.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ test('explain with json/text format', async () => {
298298
],
299299
"Startup Cost": 17.65,
300300
"Strategy": "Plain",
301-
"Total Cost": 17.68,
301+
"Total Cost": 17.67,
302302
},
303303
},
304304
],
@@ -310,7 +310,7 @@ test('explain with json/text format', async () => {
310310

311311
const res2 = await postgrest.from('users').select().explain()
312312
expect(res2.data).toMatch(
313-
`Aggregate (cost=17.65..17.68 rows=1 width=112)
313+
`Aggregate (cost=17.65..17.67 rows=1 width=112)
314314
-> Seq Scan on users (cost=0.00..15.10 rows=510 width=132)
315315
`
316316
)
@@ -332,7 +332,7 @@ test('explain with options', async () => {
332332
"Output": Array [
333333
"NULL::bigint",
334334
"count(ROW(users.username, users.data, users.age_range, users.status, users.catchphrase))",
335-
"(COALESCE(json_agg(ROW(users.username, users.data, users.age_range, users.status, users.catchphrase)), '[]'::json))::character varying",
335+
"COALESCE(json_agg(ROW(users.username, users.data, users.age_range, users.status, users.catchphrase)), '[]'::json)",
336336
"NULLIF(current_setting('response.headers'::text, true), ''::text)",
337337
"NULLIF(current_setting('response.status'::text, true), ''::text)",
338338
],
@@ -364,9 +364,9 @@ test('explain with options', async () => {
364364
],
365365
"Startup Cost": 17.65,
366366
"Strategy": "Plain",
367-
"Total Cost": 17.68,
367+
"Total Cost": 17.67,
368368
},
369-
"Query Identifier": -6192475787150577000,
369+
"Query Identifier": 3302819211508333000,
370370
"Settings": Object {
371371
"effective_cache_size": "128MB",
372372
"search_path": "\\"public\\", \\"extensions\\"",

0 commit comments

Comments
 (0)