mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Update Oracle ConvertCreateColumnInfo
This commit is contained in:
@@ -680,16 +680,16 @@ WHERE table_name = '"+tableName+"'");
|
||||
}
|
||||
private static void ConvertCreateColumnInfo(DbColumnInfo x)
|
||||
{
|
||||
string[] array = new string[] { "int","date"};
|
||||
string[] array = new string[] { "int","date"};
|
||||
if (x.OracleDataType.HasValue())
|
||||
{
|
||||
x.DataType = x.OracleDataType;
|
||||
}
|
||||
if (array.Contains(x.DataType?.ToLower()))
|
||||
{
|
||||
x.Length = 0;
|
||||
x.DecimalDigits = 0;
|
||||
}
|
||||
if (x.OracleDataType.HasValue())
|
||||
{
|
||||
x.DataType = x.OracleDataType;
|
||||
}
|
||||
if(x.DecimalDigits>0&& x.DataType?.ToLower().IsIn("varchar", "clob", "varchar2", "nvarchar2", "nvarchar")==true)
|
||||
{
|
||||
x.DecimalDigits = 0;
|
||||
|
||||
Reference in New Issue
Block a user