mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-02-01 15:23:03 +00:00
remove connection.release when sql has error
This commit is contained in:
parent
ec8515d12a
commit
586d5002dd
@ -117,7 +117,8 @@ export default class extends think.adapter.socket {
|
||||
}
|
||||
return rows;
|
||||
}).catch(err => {
|
||||
connection.release();
|
||||
//no connection.release method when has error
|
||||
//connection.release();
|
||||
|
||||
if (this.config.log_sql) {
|
||||
think.log(sql, 'SQL', startTime);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user