Skip to content

Commit

Permalink
support TIME WITH TIME ZONE reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
Parikshit Sarode committed Nov 27, 2023
1 parent 97a8646 commit 446bed2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions contrib/babelfishpg_tsql/runtime/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,13 +785,6 @@ datepart_internal_smalldatetime(PG_FUNCTION_ARGS)

timestamp = PG_GETARG_TIMESTAMP(1);

if (!IS_VALID_DATETIME2(timestamp))
{
ereport(ERROR,
(errcode(ERRCODE_DATETIME_VALUE_OUT_OF_RANGE),
errmsg("data out of range for smalldatetime")));
}

PG_RETURN_INT32(datepart_internal(field, timestamp, df_tz));
}

Expand Down
5 changes: 0 additions & 5 deletions contrib/babelfishpg_tsql/sql/sys_functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,6 @@ RETURNS INTEGER
AS 'babelfishpg_tsql', 'datepart_internal_time'
LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION sys.datepart_internal(field text, datapart_date TIME WITH TIME ZONE ,df_tz INTEGER DEFAULT 0)
RETURNS INTEGER
AS 'babelfishpg_tsql', 'datepart_internal_time'
LANGUAGE C STRICT IMMUTABLE PARALLEL SAFE;

CREATE OR REPLACE FUNCTION sys.datepart_internal(field text, datapart_date INTERVAL ,df_tz INTEGER DEFAULT 0)
RETURNS INTEGER
AS 'babelfishpg_tsql', 'datepart_internal_interval'
Expand Down

0 comments on commit 446bed2

Please sign in to comment.