[sqlalchemy] Re: Multiple inserts and last_inserted_ids

2007-11-27 Thread Jason R. Coombs
This issue seems to be causing me some trouble as well. Using sqlalchemy-0.4.2dev_r3832, I'm getting the following error when attempting to flush my session: if not len(self._last_inserted_ids) or self._last_inserted_ids[0] is None: AttributeError: 'MSSQLExecutionContext_pyodbc' object has

[sqlalchemy] Re: Multiple inserts and last_inserted_ids (MSSQL)

2007-11-27 Thread Michael Bayer
On Nov 27, 2007, at 11:18 AM, Jason R. Coombs wrote: This issue seems to be causing me some trouble as well. Using sqlalchemy-0.4.2dev_r3832, I'm getting the following error when attempting to flush my session: if not len(self._last_inserted_ids) or self._last_inserted_ids[0] is

[sqlalchemy] Re: Multiple inserts and last_inserted_ids

2007-11-25 Thread Michael Bayer
On Nov 25, 2007, at 5:46 PM, Paul Johnston wrote: Hi, I just realised, MSSQL is not returning last_inserted_ids correctly when an insert is done with multiple sets of params for a single statement. I don't think this is particularly a problem, just wanted to check what the