Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-2
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)