- attached test_has_table.py
mysql.MySQLDialect.has_table
Issue #1338
resolved
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)
-
Account Deleted -
repo owner - changed status to resolved
known mysql-python bug, fixed in mysql-python trunk:
http://sourceforge.net/tracker/index.php?func=detail&aid=2671682&group_id=22307&atid=374932
-
Account Deleted wow you're fast, thanks!
- Log in to comment
test_has_table