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