On May 22, 2007, at 11:38 AM, kwarg wrote:

>
> How can I call a stored procedure that modifies the data? The
> difference from any other stored procedure is that I have to commit
> the changes.
>
> I tried the following:
>         query = sql.func.my_stored_procedure(some_parameter)
>         trans = conn.begin()
>         try:
>             conn.execute(query)
>         except:
>             trans.rollback()
>             raise
>         trans.commit()
>
> I got an exception:
>   File "build\bdist.win32\egg\sqlalchemy\engine\base.py", line 246, in
> execute
> KeyError: <class 'sqlalchemy.sql.CompareMixin'>
>

please upgrade to 0.3.7, theres nothing on line 246 of base.py either  
in 0.3.7 or trunk.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to