test: add test for duplicate entries in pg_description with same OID

This commit is contained in:
Taimoor Zaeem
2025-05-14 09:31:48 -05:00
committed by Steve Chavez
parent 8390df0fa5
commit 8b63ea82ec
3 changed files with 25 additions and 2 deletions
+8
View File
@@ -1450,3 +1450,11 @@ spec =
{ matchStatus = 200
, matchHeaders = [matchContentTypeJson]
}
context "schema cache duplicate definitions when two entries in pg_description have the same OID" $
it "doesn't err with 300 Multiple Choices" $
request methodGet "/rpc/collision_test_func?id=1"
[] ""
`shouldRespondWith`
[json| 1 |]
{ matchStatus = 200 }