mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-09 09:55:05 +08:00
人大金仓[SqlServer]
This commit is contained in:
@@ -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()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user