]> 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:10:32 +0000 (18:10 -0400)
commit49f4d98c04f2224903e54e0eb3e3f901a27d1e38
tree3ac029f5797b1bc9e756281d75f7131588e5d3e0
parent2f4db5307ce0505cb9f2d11b16e1dd9fd3092f23
- 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