修复兼容b库下,number类型导出前和导入后类型不一样导致数据不一致的问题

This commit is contained in:
yuchao
2023-04-25 14:27:06 +08:00
committed by totaj
parent 1f97295961
commit 3c079da743

View File

@ -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;