diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/ParameterInsertable.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/ParameterInsertable.cs index 6a1e8cef2..6027c8ffd 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/ParameterInsertable.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/ParameterInsertable.cs @@ -57,7 +57,7 @@ namespace SqlSugar result +=this.Context.SaveQueues(false); }); if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle) - return objects.Length; + result=objects.Length; return result; } public async Task DefaultExecuteCommandAsync() @@ -84,7 +84,7 @@ namespace SqlSugar this.Context.AddQueue("end"); result += await this.Context.SaveQueuesAsync(false); if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle) - return objects.Length; + result= objects.Length; return result; }); return result; diff --git a/Src/Asp.NetCore2/SqlSugar/Entities/DbColumnInfo.cs b/Src/Asp.NetCore2/SqlSugar/Entities/DbColumnInfo.cs index d516bc66a..3bfff1ac9 100644 --- a/Src/Asp.NetCore2/SqlSugar/Entities/DbColumnInfo.cs +++ b/Src/Asp.NetCore2/SqlSugar/Entities/DbColumnInfo.cs @@ -23,5 +23,6 @@ namespace SqlSugar public int Scale { get; set; } public bool IsArray { get; set; } internal bool IsJson { get; set; } + public bool? IsUnsigned { get; set; } } } diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs b/Src/Asp.NetCore2/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs index c6150749c..261d1c85d 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs @@ -34,7 +34,8 @@ namespace SqlSugar CASE WHEN is_nullable = 'YES' THEN true ELSE false END AS `IsNullable`, numeric_scale as Scale, - numeric_scale as DecimalDigits + numeric_scale as DecimalDigits, + LOCATE( 'unsigned',COLUMN_type ) >0 as IsUnsigned FROM Information_schema.columns where TABLE_NAME='{0}' and TABLE_SCHEMA=(select database()) ORDER BY ordinal_position"; return sql;