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 closing cursor: (1064, "You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near 'NOT NULL' at line 1")

and doesn't propagate the exception, so the outer code won't know that
something went wrong.. In my case, this means that migrate commits che
transaction and I end up with a partially-applied change script.

Am I doing something wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to