]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- [bug] removed an erroneous "raise" in the
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 20:23:56 +0000 (15:23 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 28 Jan 2012 20:23:56 +0000 (15:23 -0500)
SQLite dialect when getting table names
and view names, where logic is in place
to fall back to an older version of
SQLite that doesn't have the
"sqlite_temp_master" table.

CHANGES
lib/sqlalchemy/dialects/sqlite/base.py

diff --git a/CHANGES b/CHANGES
index 9c86e50a81037b1b76f19ff67a4eb3306fc849ad..4b58cb4a4cb4c37dc038f9489160aa986b96ed2b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -123,6 +123,13 @@ CHANGES
   - [bug] sql.false() and sql.true() compile to
     0 and 1, respectively in sqlite [ticket:2368]
 
+  - [bug] removed an erroneous "raise" in the 
+    SQLite dialect when getting table names
+    and view names, where logic is in place
+    to fall back to an older version of 
+    SQLite that doesn't have the 
+    "sqlite_temp_master" table.
+
 - mysql
   - [bug] fixed regexp that filters out warnings
     for non-reflected "PARTITION" directives,
index 06c41b2eeff6c486f452468d07bd9d132484a0a3..a82add86c5c408ce30d56eaba8f3096904e060be 100644 (file)
@@ -556,7 +556,6 @@ class SQLiteDialect(default.DefaultDialect):
                      "WHERE type='table' ORDER BY name")
                 rs = connection.execute(s)
             except exc.DBAPIError:
-                raise
                 s = ("SELECT name FROM sqlite_master "
                      "WHERE type='table' ORDER BY name")
                 rs = connection.execute(s)
@@ -596,7 +595,6 @@ class SQLiteDialect(default.DefaultDialect):
                      "WHERE type='view' ORDER BY name")
                 rs = connection.execute(s)
             except exc.DBAPIError:
-                raise
                 s = ("SELECT name FROM sqlite_master "
                      "WHERE type='view' ORDER BY name")
                 rs = connection.execute(s)
@@ -621,7 +619,6 @@ class SQLiteDialect(default.DefaultDialect):
                      "AND type='view'") % view_name
                 rs = connection.execute(s)
             except exc.DBAPIError:
-                raise
                 s = ("SELECT sql FROM sqlite_master WHERE name = '%s' "
                      "AND type='view'") % view_name
                 rs = connection.execute(s)