summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
-rw-r--r--lib/sqlalchemy/types.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index eb8dede05..eaba40a6d 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -283,7 +283,7 @@ class _StringType(object):
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):
diff --git a/lib/sqlalchemy/types.py b/lib/sqlalchemy/types.py
index f75f5bcb6..48a6af030 100644
--- a/lib/sqlalchemy/types.py
+++ b/lib/sqlalchemy/types.py
@@ -142,7 +142,7 @@ class AbstractType(object):
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):