[sqlalchemy] Error closing cursor on MySQL silently traps exception

2011-01-22 Thread Joril
Hi everyone! I'm building a Pylons webapp using SA 0.6.4 and MySQL-Python 1.2.3. Right now I'm writing the first change script for sqlalchemy-migrate (just 3 lines of SQL). I noticed that if the change script contains some syntax error, SA catches the exception (in pool.py) and logs a Error

Re: [sqlalchemy] Error closing cursor on MySQL silently traps exception

2011-01-22 Thread Michael Bayer
Sometimes native C libraries for Python do this on occasion - they fail to raise the exception at the appropriate time, then mysteriously the next line of Python code trips the actual error. I've seen it on several occasions with different libraries.Generally its a bug in the library, but