From 35ecef722797693ff11dca0e6221050feb008afb Mon Sep 17 00:00:00 2001 From: luozihao <1165977584@qq.com> Date: Mon, 31 Oct 2022 15:53:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drename=E5=86=85=E5=AD=98?= =?UTF-8?q?=E6=B3=84=E6=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/optimizer/commands/tablecmds.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gausskernel/optimizer/commands/tablecmds.cpp b/src/gausskernel/optimizer/commands/tablecmds.cpp index ad876fcee..9f3b0d2a3 100644 --- a/src/gausskernel/optimizer/commands/tablecmds.cpp +++ b/src/gausskernel/optimizer/commands/tablecmds.cpp @@ -6093,7 +6093,7 @@ static void RenameTableFeature(RenameStmt* stmt) /* Rename regular table */ replaces[Anum_pg_class_relname - 1] = true; - values[Anum_pg_class_relname - 1] = CStringGetDatum(modfytable); + values[Anum_pg_class_relname - 1] = DirectFunctionCall1(namein, CStringGetDatum(modfytable)); if (modfySchema != NULL) { replaces[Anum_pg_class_relnamespace - 1] = true; values[Anum_pg_class_relnamespace - 1] = ObjectIdGetDatum(modfyNameSpace);