Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Jan 17, 2025
1 parent 4b0d85b commit 71a5e32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/bun/sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ class ConnectionPool {
* @param {boolean} reserved - Whether the connection is reserved, if is reserved the connection will not be released until release is called, if not release will only decrement the queriesUsing counter
*/
connect(onConnected: (err: Error | null, result: any) => void, reserved: boolean = false) {
// TODO: this always reserve a connection, we should only reserve if reserved is true
if (this.closed) {
return onConnected(connectionClosedError(), null);
}
Expand Down

0 comments on commit 71a5e32

Please sign in to comment.