diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-08-28 10:47:10 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-09-05 13:30:44 +0200 |
commit | 6bcda4a72123c3aa29fa3f03d952095675ad4468 (patch) | |
tree | ccd9c5998367bb93509fce2a5c8c6bd49563f168 /src/pl/plperl | |
parent | 6dc0738812c3fdbd733d917267a0543ab5fdf997 (diff) | |
download | postgresql-6bcda4a72123c3aa29fa3f03d952095675ad4468.tar.gz |
Fix incorrect uses of Datum conversion macros
Since these macros just cast whatever you give them to the designated
output type, and many normal uses also cast the output type further, a
number of incorrect uses go undiscovered. The fixes in this patch
have been discovered by changing these macros to inline functions,
which is the subject of a future patch.
Reviewed-by: Aleksander Alekseev <aleksander@timescale.com>
Discussion: https://www.postgresql.org/message-id/flat/8528fb7e-0aa2-6b54-85fb-0c0886dbd6ed%40enterprisedb.com
Diffstat (limited to 'src/pl/plperl')
-rw-r--r-- | src/pl/plperl/plperl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pl/plperl/plperl.c b/src/pl/plperl/plperl.c index 5d192a0ce5..8f21e0d701 100644 --- a/src/pl/plperl/plperl.c +++ b/src/pl/plperl/plperl.c @@ -1848,7 +1848,7 @@ plperl_call_handler(PG_FUNCTION_ARGS) { current_call_data = &this_call_data; if (CALLED_AS_TRIGGER(fcinfo)) - retval = PointerGetDatum(plperl_trigger_handler(fcinfo)); + retval = plperl_trigger_handler(fcinfo); else if (CALLED_AS_EVENT_TRIGGER(fcinfo)) { plperl_event_trigger_handler(fcinfo); |