-
-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly Support
RETURNS TABLE (T)
(returning a table with 1 field) (…
…#1164) Postgres treats a SRF that returns a 1-field table as if it is a `RETURNS SETOF T`, so we need to do that too. This adds a standalone function in the `srf` example, and a few tests that ensure this also works when returning it wrapped in `Result` or `Option` (or both!)
- Loading branch information
1 parent
0bdc3ad
commit 5a45b3a
Showing
3 changed files
with
77 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters