This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
Compoment
/
BPA.CAP
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fix the connection release bug when occurred an exception.
undefined
Savorboard
7 years ago
parent
dde9088bbd
commit
2504c7af8f
3 changed files
with
3 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs
+1
-0
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorageConnection.cs
+1
-0
src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs
+ 1
- 0
src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs
View File
@@ -171,6 +171,7 @@ SELECT * FROM `{_prefix}.received` WHERE Id=LAST_INSERT_ID();";
catch (MySqlException)
catch (MySqlException)
{
{
transaction.Dispose();
transaction.Dispose();
connection.Dispose();
throw;
throw;
}
}
+ 1
- 0
src/DotNetCore.CAP.PostgreSql/PostgreSqlStorageConnection.cs
View File
@@ -146,6 +146,7 @@ namespace DotNetCore.CAP.PostgreSql
catch (NpgsqlException)
catch (NpgsqlException)
{
{
transaction.Dispose();
transaction.Dispose();
connection.Dispose();
throw;
throw;
}
}
+ 1
- 0
src/DotNetCore.CAP.SqlServer/SqlServerStorageConnection.cs
View File
@@ -153,6 +153,7 @@ VALUES(@Name,@Group,@Content,@Retries,@Added,@ExpiresAt,@StatusName);";
catch (SqlException)
catch (SqlException)
{
{
transaction.Dispose();
transaction.Dispose();
connection.Dispose();
throw;
throw;
}
}
Write
Preview
Loading…
Cancel
Save