]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't select lastrowid for inline=True
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Dec 2016 15:16:31 +0000 (10:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 21 Dec 2016 18:41:25 +0000 (13:41 -0500)
commitf472405e598ad3088308db8bfef2879a57b26025
treefe650b30a2f04a8432a5cfba71231105edf95ca4
parentd5bb919aa6d5b9961f85987dfaa58d5999910d15
Don't select lastrowid for inline=True

- Fixed bug where SQL Server dialects would attempt to select the
last row identity for an INSERT from SELECT, failing in the case when
the SELECT has no rows.  For such a statement,
the inline flag is set to True indicating no last primary key
should be fetched.

Change-Id: Ic40d56d9eadadc3024a4d71245f9eed4c420024a
Fixes: #3876
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/testing/suite/test_insert.py