]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix typo
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 25 Mar 2026 06:09:44 +0000 (07:09 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 25 Mar 2026 06:09:44 +0000 (07:09 +0100)
Mistake in commit e2f289e5b9b: SOFT_ERROR_OCCURRED was called with the
wrong fcinfo field.

Reported-by: Jianghua Yang <yjhjstz@gmail.com>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/CAAZLFmSGti716gWeY%3DDCZ9TTVOixnHZ4_4V4tDzoeE86D64vOA%40mail.gmail.com

src/backend/utils/adt/date.c

index 71ea048d25125256cde92bbba23646f52b51a045..c33274403803897b00b1c9d82c212b566fa238d7 100644 (file)
@@ -1402,7 +1402,7 @@ timestamptz_date(PG_FUNCTION_ARGS)
        DateADT         result;
 
        result = timestamptz2date_safe(timestamp, fcinfo->context);
-       if (SOFT_ERROR_OCCURRED(fcinfo->args))
+       if (SOFT_ERROR_OCCURRED(fcinfo->context))
                PG_RETURN_NULL();
 
        PG_RETURN_DATEADT(result);