summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorJason Kirtland <jek@discorporate.us>2007-08-15 22:07:35 +0000
committerJason Kirtland <jek@discorporate.us>2007-08-15 22:07:35 +0000
commit9350ec482732e384179f47c36e17efa214e4529d (patch)
treefc2af713307d528e0bf25596e7b7c550eb9a8fa5 /lib/sqlalchemy/databases/mysql.py
parentcf7a01a90c16a00f112ecda68a08c63a1e3d733e (diff)
downloadsqlalchemy-9350ec482732e384179f47c36e17efa214e4529d.tar.gz
stopgap, need a general strategy for raising readable exceptions for unicode content
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index 6d6f32ead..4cdc7962a 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -1887,7 +1887,8 @@ class MySQLSchemaReflector(object):
type_, spec = self.constraints(line)
if type_ is None:
warnings.warn(
- RuntimeWarning("Unknown schema content: %s" % line))
+ RuntimeWarning("Unknown schema content: %s" %
+ repr(line)))
elif type_ == 'key':
keys.append(spec)
elif type_ == 'constraint':