mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
人大金仓[SqlServer]
This commit is contained in:
parent
595cf9cb93
commit
39f2bfd16a
@ -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" };
|
string[] array = new string[] { "int4", "text", "int2", "int8", "date", "bit", "text", "timestamp" };
|
||||||
|
|
||||||
@ -678,6 +678,16 @@ WHERE tgrelid = '" + tableName + "'::regclass");
|
|||||||
x.Length = 0;
|
x.Length = 0;
|
||||||
x.DecimalDigits = 0;
|
x.DecimalDigits = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IsSqlServerModel())
|
||||||
|
{
|
||||||
|
if (x.DataType=="int8")
|
||||||
|
{
|
||||||
|
x.DataType = "bigint";
|
||||||
|
x.Length = 0;
|
||||||
|
x.Scale = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private bool IsPgModel()
|
private bool IsPgModel()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user