Menu

#22 Crash executing Procedure

v1.0_(example)
closed
None
5
2015-02-22
2014-09-03
George
No

I'm using the code for 2.6.1.0 from the source repository.

When I try to execute a procedure I get the error:

File "c:\python27\lib\site-packages\adodbapi\adodbapi.py", line 740, in callproc
self._new_command(procname, command_type=adc.adCmdStoredProc)
TypeError: _new_command() got multiple values for keyword argument 'command_type'

The function call is

self._new_command(procname, command_type=adc.adCmdStoredProc)

but the function is

def _new_command(self, command_type=adc.adCmdText):

without a parameter for the procedure name.

This seems to have changed in:

https://sourceforge.net/p/adodbapi/code/ci/105fa3798d4d0a92e21025514f40bbee4bca4493/#diff-2

Discussion

  • Vernon Cole

    Vernon Cole - 2014-09-10

    Thank you. My SQL server was not available, so I tested without it. I have never found anyone who could write a stored procedure for PostgreSQL or MySQL, so the proc call did not get tested. :-(

    Fixed in 2.6.1.1

     
  • Vernon Cole

    Vernon Cole - 2014-09-10
    • status: open --> closed
    • assigned_to: Vernon Cole
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.