projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7f8d26
)
Don't call PG_RETURN_BOOL() in a function not returning Datum.
author
Noah Misch
<noah@leadboat.com>
Sun, 23 Jun 2019 19:02:19 +0000
(12:02 -0700)
committer
Noah Misch
<noah@leadboat.com>
Sun, 23 Jun 2019 19:02:19 +0000
(12:02 -0700)
This code is new in v12, and the defect probably was not user-visible.
src/backend/utils/adt/timestamp.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/timestamp.c
b/src/backend/utils/adt/timestamp.c
index e5ac371fa0f3c6c280d311cc8438355bea32601e..853a8dc49a469e2309dbbd7f32a5c1daa6a37db6 100644
(file)
--- a/
src/backend/utils/adt/timestamp.c
+++ b/
src/backend/utils/adt/timestamp.c
@@
-5180,8
+5180,8
@@
TimestampTimestampTzRequiresRewrite(void)
long offset;
if (pg_get_timezone_offset(session_timezone, &offset) && offset == 0)
-
PG_RETURN_BOOL(false)
;
-
PG_RETURN_BOOL(true)
;
+
return false
;
+
return true
;
}
/* timestamp_timestamptz()