Skip to content

Commit dccb430

Browse files
committed
Implement Connection._execute in terms of Connection.__execute
1 parent f8079b5 commit dccb430

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

asyncpg/connection.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,11 +1198,9 @@ def _drop_global_statement_cache(self):
11981198
self._drop_local_statement_cache()
11991199

12001200
async def _execute(self, query, args, limit, timeout, return_status=False):
1201-
executor = lambda stmt, timeout: self._protocol.bind_execute(
1202-
stmt, args, '', limit, return_status, timeout)
1203-
timeout = self._protocol._get_timeout(timeout)
12041201
with self._stmt_exclusive_section:
1205-
return await self._do_execute(query, executor, timeout)
1202+
return await self.__execute(query, args, limit, timeout,
1203+
return_status=return_status)
12061204

12071205
async def __execute(self, query, args, limit, timeout,
12081206
return_status=False):

0 commit comments

Comments
 (0)