mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-18 11:45:11 +08:00
Remove double initialization of time_bucket origin
The variable origin in ts_timestamptz_bucket was initialized two times. This commit removes one of the initializations.
This commit is contained in:
parent
4a00434e9d
commit
7474eee3b4
@ -272,11 +272,6 @@ ts_timestamptz_bucket(PG_FUNCTION_ARGS)
|
|||||||
if (TIMESTAMP_NOT_FINITE(timestamp))
|
if (TIMESTAMP_NOT_FINITE(timestamp))
|
||||||
PG_RETURN_TIMESTAMPTZ(timestamp);
|
PG_RETURN_TIMESTAMPTZ(timestamp);
|
||||||
|
|
||||||
if (PG_NARGS() > 2)
|
|
||||||
{
|
|
||||||
origin = PG_GETARG_TIMESTAMPTZ(2);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (interval->month)
|
if (interval->month)
|
||||||
{
|
{
|
||||||
DateADT origin_date = 0;
|
DateADT origin_date = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user