From 3c079da7438d890879ea08bab577b0799c582b95 Mon Sep 17 00:00:00 2001 From: yuchao Date: Tue, 25 Apr 2023 14:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=85=BC=E5=AE=B9b=E5=BA=93?= =?UTF-8?q?=E4=B8=8B=EF=BC=8Cnumber=E7=B1=BB=E5=9E=8B=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E5=89=8D=E5=92=8C=E5=AF=BC=E5=85=A5=E5=90=8E=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E6=A0=B7=E5=AF=BC=E8=87=B4=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bin/pg_dump/pg_dump.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/pg_dump/pg_dump.cpp b/src/bin/pg_dump/pg_dump.cpp index c34587331..25dc27448 100644 --- a/src/bin/pg_dump/pg_dump.cpp +++ b/src/bin/pg_dump/pg_dump.cpp @@ -19550,6 +19550,8 @@ static void dumpTableSchema(Archive* fout, TableInfo* tbinfo) if ((tbinfo->reloftype != NULL) && !binary_upgrade) { appendPQExpBuffer(q, "WITH OPTIONS"); } else if (fout->remoteVersion >= 70100) { + if (isBcompatibility && hasSpecificExtension(fout, "dolphin") && strcmp(tbinfo->atttypnames[j], "numeric") == 0) + tbinfo->atttypnames[j] = "number"; appendPQExpBuffer(q, "%s", tbinfo->atttypnames[j]); if (has_encrypted_column) { char *encryption_type = NULL;