Update Core

This commit is contained in:
sunkaixuan 2022-05-22 17:08:56 +08:00
parent b892b16b76
commit 8d3910df9b
3 changed files with 5 additions and 3 deletions

View File

@ -57,7 +57,7 @@ namespace SqlSugar
result +=this.Context.SaveQueues(false); result +=this.Context.SaveQueues(false);
}); });
if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle) if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle)
return objects.Length; result=objects.Length;
return result; return result;
} }
public async Task<int> DefaultExecuteCommandAsync() public async Task<int> DefaultExecuteCommandAsync()
@ -84,7 +84,7 @@ namespace SqlSugar
this.Context.AddQueue("end"); this.Context.AddQueue("end");
result += await this.Context.SaveQueuesAsync(false); result += await this.Context.SaveQueuesAsync(false);
if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle) if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle)
return objects.Length; result= objects.Length;
return result; return result;
}); });
return result; return result;

View File

@ -23,5 +23,6 @@ namespace SqlSugar
public int Scale { get; set; } public int Scale { get; set; }
public bool IsArray { get; set; } public bool IsArray { get; set; }
internal bool IsJson { get; set; } internal bool IsJson { get; set; }
public bool? IsUnsigned { get; set; }
} }
} }

View File

@ -34,7 +34,8 @@ namespace SqlSugar
CASE WHEN is_nullable = 'YES' CASE WHEN is_nullable = 'YES'
THEN true ELSE false END AS `IsNullable`, THEN true ELSE false END AS `IsNullable`,
numeric_scale as Scale, numeric_scale as Scale,
numeric_scale as DecimalDigits numeric_scale as DecimalDigits,
LOCATE( 'unsigned',COLUMN_type ) >0 as IsUnsigned
FROM FROM
Information_schema.columns where TABLE_NAME='{0}' and TABLE_SCHEMA=(select database()) ORDER BY ordinal_position"; Information_schema.columns where TABLE_NAME='{0}' and TABLE_SCHEMA=(select database()) ORDER BY ordinal_position";
return sql; return sql;