summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/databases/mysql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-09-21 17:12:35 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-09-21 17:12:35 +0000
commit399865aad0a47a21b96070492c84b3efa6ba9a77 (patch)
tree7bf3d4e3c9fc00314cf1ac192955ff64fafbd8cc /lib/sqlalchemy/databases/mysql.py
parent3e94bbdba83395bb04c01a15086d007d78e6a233 (diff)
downloadsqlalchemy-399865aad0a47a21b96070492c84b3efa6ba9a77.tar.gz
case sensitive function seems to return a string in some cases
Diffstat (limited to 'lib/sqlalchemy/databases/mysql.py')
-rw-r--r--lib/sqlalchemy/databases/mysql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/databases/mysql.py b/lib/sqlalchemy/databases/mysql.py
index 4eab9e55c..74821707f 100644
--- a/lib/sqlalchemy/databases/mysql.py
+++ b/lib/sqlalchemy/databases/mysql.py
@@ -313,7 +313,7 @@ class MySQLDialect(ansisql.ANSIDialect):
def reflecttable(self, connection, table):
# reference: http://dev.mysql.com/doc/refman/5.0/en/name-case-sensitivity.html
- case_sensitive = connection.execute("show variables like 'lower_case_table_names'").fetchone()[1] == 0
+ case_sensitive = int(connection.execute("show variables like 'lower_case_table_names'").fetchone()[1]) == 0
if not case_sensitive:
table.name = table.name.lower()
table.metadata.tables[table.name]= table