aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-06-07 16:45:56 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-06-07 16:45:56 -0400
commit2eba27571edcce56ac04838792e79cb23fe179d4 (patch)
tree00f64116ff61644b424b65e3a0519a21b5ba5161 /src/tutorial/basics.source
parent3c71cb497b0233f8b1e99c0110ca4111900ee08d (diff)
downloadpostgresql-2eba27571edcce56ac04838792e79cb23fe179d4.tar.gz
postgresql-2eba27571edcce56ac04838792e79cb23fe179d4.zip
Tighten test_predtest's input checks, and improve error messages.
test_predtest() neglected to consider the possibility that SPI_plan_get_cached_plan would return NULL. This led to a core dump if the input (incorrectly) contains more than one SQL command. While here, let's expend more than zero effort on the error message for this case and nearby ones. Per (half of) bug #18483 from Alexander Kozhemyakin. Back-patch to all supported branches, not because this is very significant (it's merely test scaffolding) but to make our world a bit safer for fuzz testing. Discussion: https://postgr.es/m/18483-30bfff42de238000@postgresql.org
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions