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:
Jan Nidzwetzki 2024-02-01 12:19:45 +01:00 committed by Jan Nidzwetzki
parent 4a00434e9d
commit 7474eee3b4

View File

@ -272,11 +272,6 @@ ts_timestamptz_bucket(PG_FUNCTION_ARGS)
if (TIMESTAMP_NOT_FINITE(timestamp))
PG_RETURN_TIMESTAMPTZ(timestamp);
if (PG_NARGS() > 2)
{
origin = PG_GETARG_TIMESTAMPTZ(2);
}
if (interval->month)
{
DateADT origin_date = 0;