]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
reversing last commit
authorRick Morrison <rickmorrison@gmail.com>
Mon, 18 Dec 2006 02:17:13 +0000 (02:17 +0000)
committerRick Morrison <rickmorrison@gmail.com>
Mon, 18 Dec 2006 02:17:13 +0000 (02:17 +0000)
lib/sqlalchemy/databases/mssql.py
lib/sqlalchemy/schema.py
lib/sqlalchemy/sql.py

index dc92be239ce53cf7cba0fde13d7e16bded01e473..3cfffd302a1f2a5e1f66f53c9638fe45be94a3e1 100644 (file)
@@ -58,8 +58,7 @@ except:
         import pymssql as dbmodule
         connect = dbmodule.connect
         # pymmsql doesn't have a Binary method.  we use string
-        # updated: since v.74 binary support is fixed; restriction removed
-        # dbmodule.Binary = lambda st: str(st)
+        dbmodule.Binary = lambda st: str(st)
         def make_connect_string(keys):
             if keys.get('port'):
                 # pymssql expects port as host:port, not a separate arg
@@ -178,10 +177,6 @@ class MSBoolean(sqltypes.Boolean):
         else:
             return value and True or False
         
-class MSPickle(sqltypes.PickleType):
-    def get_col_spec(self):
-        return "IMAGE"
-        
 colspecs = {
     sqltypes.Integer : MSInteger,
     sqltypes.Smallinteger: MSSmallInteger,
index fbee0c7c036c15028f6b8af2ea997c8dce4452c6..beb320e5acc9c4aeda84247ff223a10b91e1f88b 100644 (file)
@@ -911,14 +911,12 @@ class BoundMetaData(MetaData):
     """builds upon MetaData to provide the capability to bind to an Engine implementation."""
     def __init__(self, engine_or_url, name=None, **kwargs):
         super(BoundMetaData, self).__init__(name, **kwargs)
-        self.rebind(engine_or_url, **kwargs)
-    def is_bound(self):
-        return True
-    def rebind(self, engine_or_url, **kwargs):
         if isinstance(engine_or_url, str):
             self._engine = sqlalchemy.create_engine(engine_or_url, **kwargs)
         else:
             self._engine = engine_or_url
+    def is_bound(self):
+        return True
 
 class DynamicMetaData(MetaData):
     """builds upon MetaData to provide the capability to bind to multiple Engine implementations
index 3c0f1584c6a9fe42687e9695411b49850598373d..1ca6eb93d5ddd62ec38941fad862a3aecf8c8929 100644 (file)
@@ -10,7 +10,7 @@ from sqlalchemy import types as sqltypes
 import string, re, random, sets
 
 
-__all__ = ['text', 'table', 'column', 'func', 'select', 'update', 'insert', 'delete', 'join', 'and_', 'or_', 'not_', 'between', 'between_', 'case', 'cast', 'union', 'union_all', 'except_', 'except_all', 'intersect', 'intersect_all', 'null', 'desc', 'asc', 'outerjoin', 'alias', 'subquery', 'literal', 'bindparam', 'exists', 'extract','AbstractDialect', 'ClauseParameters', 'ClauseVisitor', 'Executor', 'Compiled', 'ClauseElement', 'ColumnElement', 'ColumnCollection', 'FromClause', 'TableClause', 'Select', 'Alias', 'CompoundSelect','Join', 'Selectable']
+__all__ = ['text', 'table', 'column', 'func', 'select', 'update', 'insert', 'delete', 'join', 'and_', 'or_', 'not_', 'between_', 'case', 'cast', 'union', 'union_all', 'except_', 'except_all', 'intersect', 'intersect_all', 'null', 'desc', 'asc', 'outerjoin', 'alias', 'subquery', 'literal', 'bindparam', 'exists', 'extract','AbstractDialect', 'ClauseParameters', 'ClauseVisitor', 'Executor', 'Compiled', 'ClauseElement', 'ColumnElement', 'ColumnCollection', 'FromClause', 'TableClause', 'Select', 'Alias', 'CompoundSelect','Join', 'Selectable']
 
 def desc(column):
     """return a descending ORDER BY clause element, e.g.: