Skip to content

Commit

Permalink
changed already exsisitng function
Browse files Browse the repository at this point in the history
Signed-off-by: yashneet vinayak <yashneet@amazon.com>
  • Loading branch information
yashneet vinayak committed Feb 13, 2025
1 parent 89a56e1 commit 7cfbf40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion contrib/babelfishpg_tsql/sql/sys_function_helpers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9638,7 +9638,7 @@ BEGIN
END;
$BODY$
LANGUAGE plpgsql
IMMUTABLE;
STABLE;

CREATE OR REPLACE FUNCTION sys.babelfish_conv_helper_to_datetime(IN arg sys.VARCHAR,
IN try BOOL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,6 @@ $BODY$
LANGUAGE plpgsql
IMMUTABLE;

CREATE OR REPLACE FUNCTION sys.babelfish_conv_helper_to_datetime(IN arg TEXT,
IN try BOOL,
IN p_style NUMERIC DEFAULT 0)
RETURNS sys.DATETIME
AS
$BODY$
BEGIN
IF try THEN
RETURN sys.babelfish_try_conv_string_to_datetime('DATETIME', arg, p_style);
ELSE
RETURN sys.babelfish_conv_string_to_datetime('DATETIME', arg, p_style);
END IF;
END;
$BODY$
LANGUAGE plpgsql
IMMUTABLE;

-- After upgrade, always run analyze for all babelfish catalogs.
CALL sys.analyze_babelfish_catalogs();

Expand Down

0 comments on commit 7cfbf40

Please sign in to comment.