mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update Dm&Oracle
This commit is contained in:
parent
53f598d679
commit
53b294384b
@ -653,11 +653,19 @@ WHERE upper(t.TABLE_NAME) = upper('{tableName}')
|
||||
private static void ConvertCreateColumnInfo(DbColumnInfo x)
|
||||
{
|
||||
string[] array = new string[] { "int" };
|
||||
if (x.OracleDataType.HasValue())
|
||||
{
|
||||
x.DataType = x.OracleDataType;
|
||||
}
|
||||
if (array.Contains(x.DataType?.ToLower()))
|
||||
{
|
||||
x.Length = 0;
|
||||
x.DecimalDigits = 0;
|
||||
}
|
||||
if (x.DecimalDigits > 0 && x.DataType?.ToLower()?.IsIn("varchar", "clob", "varchar2", "nvarchar2", "nvarchar") == true)
|
||||
{
|
||||
x.DecimalDigits = 0;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
@ -690,7 +690,7 @@ WHERE table_name = '"+tableName+"'");
|
||||
x.Length = 0;
|
||||
x.DecimalDigits = 0;
|
||||
}
|
||||
if(x.DecimalDigits>0&& x.DataType?.ToLower().IsIn("varchar", "clob", "varchar2", "nvarchar2", "nvarchar")==true)
|
||||
if(x.DecimalDigits>0&& x.DataType?.ToLower()?.IsIn("varchar", "clob", "varchar2", "nvarchar2", "nvarchar")==true)
|
||||
{
|
||||
x.DecimalDigits = 0;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.185</version>
|
||||
<version>5.1.4.186-preview04</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user