From cfb0b46f351d894a0c11360dee927bcbb176461d Mon Sep 17 00:00:00 2001 From: maxz Date: Wed, 13 Nov 2024 14:22:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dnew=5Ftime=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E5=90=8E=E5=85=83=E6=95=B0=E6=8D=AE=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../upgrade-post_catalog_maindb_93_007.sql | 2 +- .../upgrade-post_catalog_otherdb_93_007.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_93_007.sql b/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_93_007.sql index 9fcd5f304..732a96230 100644 --- a/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_93_007.sql +++ b/src/include/catalog/upgrade_sql/upgrade_catalog_maindb/upgrade-post_catalog_maindb_93_007.sql @@ -1,4 +1,4 @@ SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 970; CREATE FUNCTION pg_catalog.new_time(timestamp, text, text) -RETURNS record LANGUAGE INTERNAL IMMUTABLE STRICT as 'new_time'; +RETURNS TIMESTAMP LANGUAGE INTERNAL IMMUTABLE STRICT as 'new_time'; COMMENT ON FUNCTION pg_catalog.new_time(timestamp, text, text) IS 'convert date and time in timezone1 to timezone2'; \ No newline at end of file diff --git a/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_93_007.sql b/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_93_007.sql index 9fcd5f304..732a96230 100644 --- a/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_93_007.sql +++ b/src/include/catalog/upgrade_sql/upgrade_catalog_otherdb/upgrade-post_catalog_otherdb_93_007.sql @@ -1,4 +1,4 @@ SET LOCAL inplace_upgrade_next_system_object_oids = IUO_PROC, 970; CREATE FUNCTION pg_catalog.new_time(timestamp, text, text) -RETURNS record LANGUAGE INTERNAL IMMUTABLE STRICT as 'new_time'; +RETURNS TIMESTAMP LANGUAGE INTERNAL IMMUTABLE STRICT as 'new_time'; COMMENT ON FUNCTION pg_catalog.new_time(timestamp, text, text) IS 'convert date and time in timezone1 to timezone2'; \ No newline at end of file