Update Dm&Oracle

This commit is contained in:
sunkaixuan 2025-03-21 08:50:25 +08:00
parent 53f598d679
commit 53b294384b
3 changed files with 10 additions and 2 deletions

View File

@ -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
}

View File

@ -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;
}

View File

@ -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>