forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit07daca5
committed
Fix inconsistencies in SRF checks of pg_config() and string_to_table()
The execution paths of those functions have been using a set of checksinconsistent with any other SRF function:- string_to_table() missed a check on expectedDesc, the tuple descriptorexpected by the caller, that should never be NULL. Introduced in66f1630.- pg_config() should check for a ReturnSetInfo, and expectedDesc cannotbe NULL. Its error messages were also inconsistent. Introduced ina5c43b8.Extracted from a larger patch by the same author, in preparation for alarger patch set aimed at refactoring the way tuplestores are createdand checked in SRF functions.Author: Melanie PlagemanReviewed-by: Justin PryzbyDiscussion:https://postgr.es/m/CAAKRu_azyd1Z3W_r7Ou4sorTjRCs+PxeHw1CWJeXKofkE6TuZg@mail.gmail.com1 parent618c167 commit07daca5
2 files changed
+10
-5
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4839 | 4839 |
| |
4840 | 4840 |
| |
4841 | 4841 |
| |
4842 |
| - | |
| 4842 | + | |
| 4843 | + | |
4843 | 4844 |
| |
4844 | 4845 |
| |
4845 | 4846 |
| |
|
Lines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 |
| - | |
43 |
| - | |
44 |
| - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
45 | 49 |
| |
46 | 50 |
| |
47 | 51 |
| |
|
0 commit comments
Comments
(0)