mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
5.0.2.1
This commit is contained in:
parent
f1bb1d36cf
commit
4f65c4d1c2
@ -85,6 +85,7 @@ namespace SqlSugar
|
||||
if (parameters == null || parameters.Length == 0) return null;
|
||||
SqliteParameter[] result = new SqliteParameter[parameters.Length];
|
||||
int index = 0;
|
||||
var isVarchar = this.Context.IsVarchar();
|
||||
foreach (var parameter in parameters)
|
||||
{
|
||||
if (parameter.Value == null) parameter.Value = DBNull.Value;
|
||||
@ -107,7 +108,10 @@ namespace SqlSugar
|
||||
sqlParameter.DbType = System.Data.DbType.String;
|
||||
sqlParameter.Value = sqlParameter.Value.ObjToString();
|
||||
}
|
||||
|
||||
if (isVarchar && sqlParameter.DbType == System.Data.DbType.String)
|
||||
{
|
||||
sqlParameter.DbType = System.Data.DbType.AnsiString;
|
||||
}
|
||||
++index;
|
||||
}
|
||||
return result;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<Version>5.0.2</Version>
|
||||
<Version>5.0.2.1</Version>
|
||||
<Copyright>sun_kai_xuan</Copyright>
|
||||
<PackageProjectUrl>https://github.com/sunkaixuan/SqlSugar</PackageProjectUrl>
|
||||
<PackageLicenseUrl></PackageLicenseUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user