mysql.MySQLDialect.has_table

Issue #1338 resolved
Former user created an issue
System Information
Ubuntu 8.0.4 LTS
MySQL Server Version: 5.0.51a-3ubuntu5.4
Python 2.5.2
sqlalchemy 0.5.2
file: sqlalchemy/databases/mysql.py
line no: 1612

checking for  e.orig.args[0](0) == 1146 doesn't work correctly
but if I change it to check for e.orig[0](0)[0](0) == 1146 it does work

I think it has to do with the version of mysql as it works great on my mac and a slightly older version of mysql server(5.0.45)

when I run the attached script on my mac it runs without errors but on the ubuntu system it throws an exception

Comments (3)

  1. Log in to comment