mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-26 10:19:40 +08:00
Optimize 达梦
This commit is contained in:
@@ -524,6 +524,7 @@ WHERE table_name = '" + tableName + "'");
|
|||||||
{
|
{
|
||||||
foreach (var item in columns)
|
foreach (var item in columns)
|
||||||
{
|
{
|
||||||
|
ConvertCreateColumnInfo(item);
|
||||||
if (item.DbColumnName.Equals("GUID", StringComparison.CurrentCultureIgnoreCase) && item.Length == 0)
|
if (item.DbColumnName.Equals("GUID", StringComparison.CurrentCultureIgnoreCase) && item.Length == 0)
|
||||||
{
|
{
|
||||||
item.Length = 10;
|
item.Length = 10;
|
||||||
@@ -582,6 +583,15 @@ WHERE upper(t.TABLE_NAME) = upper('{tableName}')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
private static void ConvertCreateColumnInfo(DbColumnInfo x)
|
||||||
|
{
|
||||||
|
string[] array = new string[] { "int" };
|
||||||
|
if (array.Contains(x.DataType?.ToLower()))
|
||||||
|
{
|
||||||
|
x.Length = 0;
|
||||||
|
x.DecimalDigits = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user