MYSQL BUG

This commit is contained in:
skx
2019-12-14 17:45:14 +08:00
parent 89656e9055
commit ccc23ef3e0

View File

@@ -311,7 +311,8 @@ namespace SqlSugar
sqlCommand.Parameters.Clear();
ExecuteAfter(sql, parameters);
SetConnectionEnd(sql);
sqlCommand.Dispose();
if (this.Context.CurrentConnectionConfig.DbType == DbType.Sqlite)
sqlCommand.Dispose();
return sqlDataReader;
}
catch (Exception ex)
@@ -445,7 +446,8 @@ namespace SqlSugar
sqlCommand.Parameters.Clear();
ExecuteAfter(sql, parameters);
SetConnectionEnd(sql);
sqlCommand.Dispose();
if (this.Context.CurrentConnectionConfig.DbType == DbType.Sqlite)
sqlCommand.Dispose();
return sqlDataReader;
}
catch (Exception ex)