Skip to content

Commit 9a81c9f

Browse files
committed
Don't call PG_RETURN_BOOL() in a function not returning Datum.
This code is new in v12, and the defect probably was not user-visible.
1 parent d7f8d26 commit 9a81c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/timestamp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5180,8 +5180,8 @@ TimestampTimestampTzRequiresRewrite(void)
51805180
long offset;
51815181

51825182
if (pg_get_timezone_offset(session_timezone, &offset) && offset == 0)
5183-
PG_RETURN_BOOL(false);
5184-
PG_RETURN_BOOL(true);
5183+
return false;
5184+
return true;
51855185
}
51865186

51875187
/* timestamp_timestamptz()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy