]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- rework tests for attached databases into individual tests,
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Sep 2014 22:09:25 +0000 (18:09 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 29 Sep 2014 22:09:25 +0000 (18:09 -0400)
commit4da020dae324cb871074e302f4840e8731988be0
tree68f6a140b42d331ab7591d01c5931a5b129778b1
parentb6496ba3d28d685547eac2891bfea5f4ae60e834
- rework tests for attached databases into individual tests,
test both memory and file-based
- When selecting from a UNION using an attached database file,
the pysqlite driver reports column names in cursor.description
as 'dbname.tablename.colname', instead of 'tablename.colname' as
it normally does for a UNION (note that it's supposed to just be
'colname' for both, but we work around it).  The column translation
logic here has been adjusted to retrieve the rightmost token, rather
than the second token, so it works in both cases.   Workaround
courtesy Tony Roberts.
fixes #3211
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/dialects/sqlite/base.py
test/dialect/test_sqlite.py