diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-17 15:15:21 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-09-17 15:15:21 -0400 |
commit | cb23fa243f5138aac7acb2a134d567f1a297d42e (patch) | |
tree | 7cd9b791c2574eb5d9f679da1c2d0ca0840f0ae9 /test/dialect/test_sqlite.py | |
parent | 1217d6ce97bd469b3ec2c17f6f955730059d571f (diff) | |
download | sqlalchemy-cb23fa243f5138aac7acb2a134d567f1a297d42e.tar.gz |
- Added :meth:`.Inspector.get_temp_table_names` and
:meth:`.Inspector.get_temp_view_names`; currently, only the
SQLite dialect supports these methods. The return of temporary
table and view names has been **removed** from SQLite's version
of :meth:`.Inspector.get_table_names` and
:meth:`.Inspector.get_view_names`; other database backends cannot
support this information (such as MySQL), and the scope of operation
is different in that the tables can be local to a session and
typically aren't supported in remote schemas.
fixes #3204
Diffstat (limited to 'test/dialect/test_sqlite.py')
-rw-r--r-- | test/dialect/test_sqlite.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py index e77a03980..e1f6225f4 100644 --- a/test/dialect/test_sqlite.py +++ b/test/dialect/test_sqlite.py @@ -515,23 +515,6 @@ class DialectTest(fixtures.TestBase, AssertsExecutionResults): finally: cx.execute('DETACH DATABASE test_schema') - @testing.exclude('sqlite', '<', (2, 6), 'no database support') - def test_temp_table_reflection(self): - cx = testing.db.connect() - try: - cx.execute('CREATE TEMPORARY TABLE tempy (id INT)') - assert 'tempy' in cx.dialect.get_table_names(cx, None) - meta = MetaData(cx) - tempy = Table('tempy', meta, autoload=True) - assert len(tempy.c) == 1 - meta.drop_all() - except: - try: - cx.execute('DROP TABLE tempy') - except exc.DBAPIError: - pass - raise - def test_file_path_is_absolute(self): d = pysqlite_dialect.dialect() eq_( |