-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: handle column default types correctly in SchemaCache #3750
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -563,6 +563,16 @@ spec actualPgVersion = do | |
}|]) | ||
{ matchStatus = 400 } | ||
|
||
it "inserts a default on a DOMAIN with default" $ | ||
request methodPost "/evil_friends?columns=id,name" | ||
[("Prefer", "return=representation"), ("Prefer", "missing=default")] | ||
[json| { "name": "Lu" } |] | ||
`shouldRespondWith` | ||
[json| [{"id": 666, "name": "Lu"}] |] | ||
{ matchStatus = 201 | ||
, matchHeaders = ["Preference-Applied" <:> "missing=default, return=representation"] | ||
} | ||
|
||
Comment on lines
+566
to
+575
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Laurence asked you to write a test-case similar to this one, but with some changes (i.e. test for column default, not domain default)... Instead of adjusting the test-case, so that it actually matches what you are trying to achieve.. you just copy-pasted the exact same thing, which is a duplicate of the test-case right after. What are you trying to achieve? |
||
it "inserts a default on a DOMAIN with default" $ | ||
request methodPost "/evil_friends?columns=id,name" [("Prefer", "return=representation"), ("Prefer", "missing=default")] | ||
[json| { "name": "Lu" } |] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already a
Fixed
h3-section under the Unreleased h2-section. It should be added to that section. Also you are still not following the format as the other log entries below. Have a close look where the issue number is placed, note that the author is listed at the end, etc...