Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Davis2014-02-26 15:47:09 +0000
committerJeff Davis2014-02-26 15:47:41 +0000
commit486ea0b19e08c10ff53e36e46209a928df048281 (patch)
treea28f2d1747af88711e26449023abad44040f3505 /src/backend/regex
parentfccebe421d0c410e6378fb281419442c84759213 (diff)
Fix crash in json_to_record().
json_to_record() depends on get_call_result_type() for the tuple descriptor of the record that should be returned, but in some cases that cannot be determined. Add a guard to check if the tuple descriptor has been properly resolved, similar to other callers of get_call_result_type(). Also add guard for two other callers of get_call_result_type() in jsonfuncs.c. Although json_to_record() is the only actual bug, it's a good idea to follow convention.
Diffstat (limited to 'src/backend/regex')
0 files changed, 0 insertions, 0 deletions