Fix double release of the same connection when executing a query.
This commit is contained in:
parent
fc6cbaa2b9
commit
8bc551b55b
1 changed files with 0 additions and 1 deletions
|
@ -38,7 +38,6 @@ pub fn bindQueryParameter(statement: *pg.Stmt, parameter: _sql.RawQueryParameter
|
|||
pub fn handlePostgresqlError(err: anyerror, connection: *database.Connection, statement: *pg.Stmt) anyerror {
|
||||
// Release connection and statement as query failed.
|
||||
defer statement.deinit();
|
||||
defer connection.release();
|
||||
|
||||
return handleRawPostgresqlError(err, connection.connection);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue