Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callproc keyword_parameters needs functools.partial #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jaza
Copy link

@Jaza Jaza commented Sep 23, 2022

To prevent this error:

File /path/to/cx_Oracle_async/cursors.py:45, in AsyncCursorWrapper.callproc(self, *args, **kwargs)
     44 async def callproc(self, *args , **kwargs):
---> 45     return await self._loop.run_in_executor(self._thread_pool , self._cursor.callproc, *args , **kwargs)

TypeError: BaseEventLoop.run_in_executor() got an unexpected keyword argument 'keyword_parameters'

To prevent this error:

    File /path/to/cx_Oracle_async/cursors.py:45, in AsyncCursorWrapper.callproc(self, *args, **kwargs)
         44 async def callproc(self, *args , **kwargs):
    ---> 45     return await self._loop.run_in_executor(self._thread_pool , self._cursor.callproc, *args , **kwargs)

    TypeError: BaseEventLoop.run_in_executor() got an unexpected keyword argument 'keyword_parameters'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant