69
69
[(" Prefer" , " tx=commit" ), singular]
70
70
[json | { address: "zzz" } |]
71
71
`shouldRespondWith`
72
- [json |{"details":"Results contain 4 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
72
+ [json |{"details":"The result contains 4 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
73
73
{ matchStatus = 406
74
74
, matchHeaders = [ matchContentTypeSingular
75
75
, " Preference-Applied" <:> " tx=commit" ]
85
85
[(" Prefer" , " tx=commit" ), (" Prefer" , " return=representation" ), singular]
86
86
[json | { address: "zzz" } |]
87
87
`shouldRespondWith`
88
- [json |{"details":"Results contain 4 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
88
+ [json |{"details":"The result contains 4 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
89
89
{ matchStatus = 406
90
90
, matchHeaders = [ matchContentTypeSingular
91
91
, " Preference-Applied" <:> " tx=commit" ]
@@ -100,7 +100,7 @@ spec =
100
100
request methodPatch " /items?id=gt.0&id=lt.0"
101
101
[singular] [json |{"id":1}|]
102
102
`shouldRespondWith`
103
- [json |{"details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
103
+ [json |{"details":"The result contains 0 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
104
104
{ matchStatus = 406
105
105
, matchHeaders = [matchContentTypeSingular]
106
106
}
@@ -109,7 +109,7 @@ spec =
109
109
request methodPatch " /items?id=gt.0&id=lt.0"
110
110
[(" Prefer" , " return=representation" ), singular] [json |{"id":1}|]
111
111
`shouldRespondWith`
112
- [json |{"details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
112
+ [json |{"details":"The result contains 0 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
113
113
{ matchStatus = 406
114
114
, matchHeaders = [matchContentTypeSingular]
115
115
}
@@ -141,7 +141,7 @@ spec =
141
141
[(" Prefer" , " tx=commit" ), singular]
142
142
[json | [ { id: 200, address: "xxx" }, { id: 201, address: "yyy" } ] |]
143
143
`shouldRespondWith`
144
- [json |{"details":"Results contain 2 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
144
+ [json |{"details":"The result contains 2 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
145
145
{ matchStatus = 406
146
146
, matchHeaders = [ matchContentTypeSingular
147
147
, " Preference-Applied" <:> " tx=commit" ]
@@ -157,7 +157,7 @@ spec =
157
157
[(" Prefer" , " tx=commit" ), (" Prefer" , " return=representation" ), singular]
158
158
[json | [ { id: 202, address: "xxx" }, { id: 203, address: "yyy" } ] |]
159
159
`shouldRespondWith`
160
- [json |{"details":"Results contain 2 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
160
+ [json |{"details":"The result contains 2 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
161
161
{ matchStatus = 406
162
162
, matchHeaders = [ matchContentTypeSingular
163
163
, " Preference-Applied" <:> " tx=commit" ]
@@ -173,7 +173,7 @@ spec =
173
173
[(" Prefer" , " tx=commit" ), (" Prefer" , " return=minimal" ), singular]
174
174
[json | [ { id: 204, address: "xxx" }, { id: 205, address: "yyy" } ] |]
175
175
`shouldRespondWith`
176
- [json |{"details":"Results contain 2 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
176
+ [json |{"details":"The result contains 2 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
177
177
{ matchStatus = 406
178
178
, matchHeaders = [ matchContentTypeSingular
179
179
, " Preference-Applied" <:> " tx=commit" ]
@@ -189,7 +189,7 @@ spec =
189
189
[singular]
190
190
[json | [ ] |]
191
191
`shouldRespondWith`
192
- [json |{"details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
192
+ [json |{"details":"The result contains 0 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
193
193
{ matchStatus = 406
194
194
, matchHeaders = [matchContentTypeSingular]
195
195
}
@@ -199,7 +199,7 @@ spec =
199
199
[(" Prefer" , " return=representation" ), singular]
200
200
[json | [ ] |]
201
201
`shouldRespondWith`
202
- [json |{"details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
202
+ [json |{"details":"The result contains 0 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
203
203
{ matchStatus = 406
204
204
, matchHeaders = [matchContentTypeSingular]
205
205
}
@@ -222,7 +222,7 @@ spec =
222
222
[(" Prefer" , " tx=commit" ), singular]
223
223
" "
224
224
`shouldRespondWith`
225
- [json |{"details":"Results contain 5 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
225
+ [json |{"details":"The result contains 5 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
226
226
{ matchStatus = 406
227
227
, matchHeaders = [ matchContentTypeSingular
228
228
, " Preference-Applied" <:> " tx=commit" ]
@@ -240,7 +240,7 @@ spec =
240
240
request methodDelete " /items?id=gt.5&id=lt.11"
241
241
[(" Prefer" , " tx=commit" ), (" Prefer" , " return=representation" ), singular] " "
242
242
`shouldRespondWith`
243
- [json |{"details":"Results contain 5 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
243
+ [json |{"details":"The result contains 5 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
244
244
{ matchStatus = 406
245
245
, matchHeaders = [ matchContentTypeSingular
246
246
, " Preference-Applied" <:> " tx=commit" ]
@@ -257,7 +257,7 @@ spec =
257
257
request methodDelete " /items?id=lt.0"
258
258
[singular] " "
259
259
`shouldRespondWith`
260
- [json |{"details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
260
+ [json |{"details":"The result contains 0 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
261
261
{ matchStatus = 406
262
262
, matchHeaders = [matchContentTypeSingular]
263
263
}
@@ -266,7 +266,7 @@ spec =
266
266
request methodDelete " /items?id=lt.0"
267
267
[(" Prefer" , " return=representation" ), singular] " "
268
268
`shouldRespondWith`
269
- [json |{"details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
269
+ [json |{"details":"The result contains 0 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
270
270
{ matchStatus = 406
271
271
, matchHeaders = [matchContentTypeSingular]
272
272
}
@@ -276,7 +276,7 @@ spec =
276
276
request methodPost " /rpc/getproject"
277
277
[singular] [json |{ "id": 9999999}|]
278
278
`shouldRespondWith`
279
- [json |{"details":"Results contain 0 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
279
+ [json |{"details":"The result contains 0 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
280
280
{ matchStatus = 406
281
281
, matchHeaders = [matchContentTypeSingular]
282
282
}
@@ -299,7 +299,7 @@ spec =
299
299
request methodPost " /rpc/getallprojects"
300
300
[singular] " {}"
301
301
`shouldRespondWith`
302
- [json |{"details":"Results contain 5 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
302
+ [json |{"details":"The result contains 5 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
303
303
{ matchStatus = 406
304
304
, matchHeaders = [matchContentTypeSingular]
305
305
}
@@ -314,7 +314,7 @@ spec =
314
314
[(" Prefer" , " tx=commit" ), singular]
315
315
[json | {"id_l": 1, "id_h": 2, "name": "changed"} |]
316
316
`shouldRespondWith`
317
- [json |{"details":"Results contain 2 rows, application/vnd.pgrst.object+json requires 1 row ","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
317
+ [json |{"details":"The result contains 2 rows","message":"JSON object requested, multiple (or no) rows returned","code":"PGRST116","hint":null}|]
318
318
{ matchStatus = 406
319
319
, matchHeaders = [ matchContentTypeSingular
320
320
, " Preference-Applied" <:> " tx=commit" ]
0 commit comments