- changed milestone to 0.5.xx
engine.execute raised exception when given empty list
The following code:
engine.execute(person_table.insert(), [this exception: Traceback (most recent call last): ... File "c:\python25\lib\site-packages\SQLAlchemy-0.5.0rc1-py2.5.egg\sqlalchemy\e ngine\base.py", line 1220, in execute return connection.execute(statement, multiparams, *params) File "c:\python25\lib\site-packages\SQLAlchemy-0.5.0rc1-py2.5.egg\sqlalchemy\e ngine\base.py", line 848, in execute return Connection.executorsc
raises)(self, object, multiparams, params) File "c:\python25\lib\site-packages\SQLAlchemy-0.5.0rc1-py2.5.egg\sqlalchemy\e ngine\base.py", line 894, in execute_clauseelement params = self.__distill_params(multiparams, params) File "c:\python25\lib\site-packages\SQLAlchemy-0.5.0rc1-py2.5.egg\sqlalchemy\e ngine\base.py", line 876, in __distill_params if isinstance(multiparams00, (list, tuple, dict)): IndexError: list index out of range
I think it should return an empty result instead.
Comments (3)
-
repo owner -
- changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.5.xx (automated comment)
- Log in to comment
patch: