From d95c6fe5004498b7786601241d4a609c44b0efd6 Mon Sep 17 00:00:00 2001 From: Bryan Baker Date: Wed, 17 Aug 2022 13:36:58 -0500 Subject: [PATCH 1/2] Added description method for AsyncCursorWrapper. --- cx_Oracle_async/cursors.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cx_Oracle_async/cursors.py b/cx_Oracle_async/cursors.py index bcd0f0b..130dd42 100644 --- a/cx_Oracle_async/cursors.py +++ b/cx_Oracle_async/cursors.py @@ -43,3 +43,6 @@ async def var(self, args): async def callproc(self, *args , **kwargs): return await self._loop.run_in_executor(self._thread_pool , self._cursor.callproc, *args , **kwargs) + + async def description(self): + return self._cursor.description From 03815a06390afdef77ac4fb8804e10e763c70ed6 Mon Sep 17 00:00:00 2001 From: Bryan Baker Date: Fri, 19 Aug 2022 09:34:12 -0500 Subject: [PATCH 2/2] Changed the description method to a property. --- cx_Oracle_async/cursors.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cx_Oracle_async/cursors.py b/cx_Oracle_async/cursors.py index 130dd42..27fa58c 100644 --- a/cx_Oracle_async/cursors.py +++ b/cx_Oracle_async/cursors.py @@ -43,6 +43,7 @@ async def var(self, args): async def callproc(self, *args , **kwargs): return await self._loop.run_in_executor(self._thread_pool , self._cursor.callproc, *args , **kwargs) - - async def description(self): - return self._cursor.description + + @property + def description(self): + return self._cursor.description