Fix COPY FROM and add tests (#522)

* Fix COPY FROM and add tests

* E

* fmt
This commit is contained in:
Mostafa Abdelraouf
2023-07-21 01:06:01 -05:00
committed by GitHub
parent 19cb8a3022
commit 2a8f3653a6
3 changed files with 132 additions and 3 deletions

View File

@@ -1260,7 +1260,7 @@ where
// Release server back to the pool if we are in transaction mode.
// If we are in session mode, we keep the server until the client disconnects.
if self.transaction_mode {
if self.transaction_mode && !server.in_copy_mode() {
self.stats.idle();
break;
@@ -1410,7 +1410,7 @@ where
// Release server back to the pool if we are in transaction mode.
// If we are in session mode, we keep the server until the client disconnects.
if self.transaction_mode {
if self.transaction_mode && !server.in_copy_mode() {
break;
}
}