Commits

Mike Bayer committed 9375048

temporarily disabling genrated type_map which breaks all the othe rdialects

Comments (0)

Files changed (2)

lib/sqlalchemy/databases/oracle.py

         else:
             self.ORACLE_BINARY_TYPES = []
 
+
     def dbapi(cls):
         import cx_Oracle
         return cx_Oracle

lib/sqlalchemy/engine/default.py

         
         TODO: dialects should export this mapping explicitly, instead of relying upon
         module searching.
+
+        TODO: so far, this only seems to work with oracle
         """
         dialect_module = sys.modules[self.__class__.__module__]
         map = {}
-        for obj in dialect_module.__dict__.values():
-            if isinstance(obj, type) and issubclass(obj, types.TypeEngine):
-                obj = obj()
-                map[obj.get_dbapi_type(self.dbapi)] = obj
+        if False:
+            for obj in dialect_module.__dict__.values():
+                if self.dbapi is not None and isinstance(obj, type) and issubclass(obj, types.TypeEngine):
+                    obj = obj()
+                    try:
+                        map[obj.get_dbapi_type(self.dbapi)] = obj
+                    except AttributeError:
+                        pass
         self._dbapi_type_map = map
     
     def decode_result_columnname(self, name):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.