人大金仓[SqlServer]

This commit is contained in:
sunkaixuan 2025-02-17 10:35:33 +08:00
parent 595cf9cb93
commit 39f2bfd16a

View File

@ -669,7 +669,7 @@ WHERE tgrelid = '" + tableName + "'::regclass");
}
}
}
private static void ConvertCreateColumnInfo(DbColumnInfo x)
private void ConvertCreateColumnInfo(DbColumnInfo x)
{
string[] array = new string[] { "int4", "text", "int2", "int8", "date", "bit", "text", "timestamp" };
@ -678,6 +678,16 @@ WHERE tgrelid = '" + tableName + "'::regclass");
x.Length = 0;
x.DecimalDigits = 0;
}
if (IsSqlServerModel())
{
if (x.DataType=="int8")
{
x.DataType = "bigint";
x.Length = 0;
x.Scale = 0;
}
}
}
private bool IsPgModel()
{