Commits

jason kirtland committed f24884a

More column type __repr__ corrections.

  • Participants
  • Parent commits 053d03b

Comments (0)

Files changed (2)

File lib/sqlalchemy/databases/mysql.py

                 params[attr] = val
 
         return "%s(%s)" % (self.__class__.__name__,
-                           ','.join(['%s=%s' % (k, params[k]) for k in params]))
+                           ', '.join(['%s=%r' % (k, params[k]) for k in params]))
 
 
 class MSNumeric(sqltypes.Numeric, _NumericType):

File lib/sqlalchemy/types.py

     def __repr__(self):
         return "%s(%s)" % (
             self.__class__.__name__,
-            ",".join(["%s=%s" % (k, getattr(self, k, None))
+            ", ".join(["%s=%r" % (k, getattr(self, k, None))
                       for k in inspect.getargspec(self.__init__)[0][1:]]))
 
 class TypeEngine(AbstractType):