You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/spec/Feature/ConcurrentSpec.hs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ spec =
25
25
raceTest 10$
26
26
get "/fakefake"
27
27
`shouldRespondWith`
28
-
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.factories'","message":"Could not find the table 'test.fakefake' in the schema cache"} |]
28
+
[json| {"code":"PGRST205","details":null,"hint":null,"message":"Could not find the table 'test.fakefake' in the schema cache"} |]
Copy file name to clipboardExpand all lines: test/spec/Feature/Query/DeleteSpec.hs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ spec =
116
116
it "fails with 404"$
117
117
request methodDelete "/foozle?id=eq.101"[]""
118
118
`shouldRespondWith`
119
-
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.foo'","message":"Could not find the table 'test.foozle' in the schema cache"} |]
119
+
[json| {"code":"PGRST205","details":null,"hint":null,"message":"Could not find the table 'test.foozle' in the schema cache"} |]
Copy file name to clipboardExpand all lines: test/spec/Feature/Query/ErrorSpec.hs
+29-2Lines changed: 29 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,10 @@ pgErrorCodeMapping = do
42
42
it "works with SchemaCache error"$
43
43
get "/non_existent_table"
44
44
`shouldRespondWith`
45
-
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.collision_test_table'","message":"Could not find the table 'test.non_existent_table' in the schema cache"} |]
45
+
[json| {"code":"PGRST205","details":null,"hint":null,"message":"Could not find the table 'test.non_existent_table' in the schema cache"} |]
context "show hint on PGRST205 table not found error"$do
80
+
it "show hint when similarity score is at least 75%"$do
81
+
get "/projectx"-- at least 75% similar to "projects"
82
+
`shouldRespondWith`
83
+
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.projects'","message":"Could not find the table 'test.projectx' in the schema cache"} |]
get "/projecxx"-- at least 75% similar to "projects"
90
+
`shouldRespondWith`
91
+
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.projects'","message":"Could not find the table 'test.projecxx' in the schema cache"} |]
Copy file name to clipboardExpand all lines: test/spec/Feature/Query/InsertSpec.hs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -483,7 +483,7 @@ spec actualPgVersion = do
483
483
{"id": 204, "body": "yyy"},
484
484
{"id": 205, "body": "zzz"}]|]
485
485
`shouldRespondWith`
486
-
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.articles'","message":"Could not find the table 'test.garlic' in the schema cache"} |]
486
+
[json| {"code":"PGRST205","details":null,"hint":null,"message":"Could not find the table 'test.garlic' in the schema cache"} |]
Copy file name to clipboardExpand all lines: test/spec/Feature/Query/QuerySpec.hs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,9 @@ spec = do
26
26
it "causes a 404"$
27
27
get "/faketable"
28
28
`shouldRespondWith`
29
-
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.private_table'","message":"Could not find the table 'test.faketable' in the schema cache"} |]
29
+
[json| {"code":"PGRST205","details":null,"hint":null,"message":"Could not find the table 'test.faketable' in the schema cache"} |]
30
30
{ matchStatus =404
31
-
, matchHeaders = ["Content-Length"<:>"166"]
31
+
, matchHeaders = ["Content-Length"<:>"120"]
32
32
}
33
33
34
34
describe "Filtering response"$do
@@ -852,7 +852,7 @@ spec = do
852
852
-- the existence of first table, #3869
853
853
it "table not found error if first table does not exist"$
854
854
get "/car_model_sales_202101?select=id,name,car_models(id,name)&order=id.asc"`shouldRespondWith`
855
-
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.car_model_sales'","message":"Could not find the table 'test.car_model_sales_202101' in the schema cache"} |]
855
+
[json| {"code":"PGRST205","details":null,"hint":null,"message":"Could not find the table 'test.car_model_sales_202101' in the schema cache"} |]
856
856
{ matchStatus =404
857
857
, matchHeaders = [matchContentTypeJson]
858
858
}
@@ -870,7 +870,7 @@ spec = do
870
870
871
871
it "table not found error if first table does not exist"$
872
872
get "/car_models_default?select=id,name,car_model_sales(id,name)&order=id.asc"`shouldRespondWith`
873
-
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.car_model_sales'","message":"Could not find the table 'test.car_models_default' in the schema cache"} |]
873
+
[json| {"code":"PGRST205","details":null,"hint":null,"message":"Could not find the table 'test.car_models_default' in the schema cache"} |]
Copy file name to clipboardExpand all lines: test/spec/Feature/Query/UpdateSpec.hs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,9 @@ spec = do
18
18
request methodPatch "/fake"[]
19
19
[json| { "real": false } |]
20
20
`shouldRespondWith`
21
-
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.factories'","message":"Could not find the table 'test.fake' in the schema cache"} |]
21
+
[json| {"code":"PGRST205","details":null,"hint":null,"message":"Could not find the table 'test.fake' in the schema cache"} |]
22
22
{ matchStatus =404
23
-
, matchHeaders = ["Content-Length"<:>"157"]
23
+
, matchHeaders = ["Content-Length"<:>"115"]
24
24
}
25
25
26
26
@@ -363,9 +363,9 @@ spec = do
363
363
{"id": 204, "body": "yyy"},
364
364
{"id": 205, "body": "zzz"}]|]
365
365
`shouldRespondWith`
366
-
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.articles'","message":"Could not find the table 'test.garlic' in the schema cache"} |]
366
+
[json| {"code":"PGRST205","details":null,"hint":null,"message":"Could not find the table 'test.garlic' in the schema cache"} |]
0 commit comments