Hello! I am currently working on a daemon that connects to the MySQL db via SQLA. Some of the queries are done with ORM. I am trying to handle the errors (mostly disconnection errors) by calling rollback() to the session that caused the exception, putting the thread to sleep for some time and then retrying the query. However sometimes when testing this by killing and starting the db manually I don't get the desired behavior. The daemon will keep to log the error (MySQL server has hone away) even after the db restart. What am I doing wrong? Or where can I find some good docs to solve my problem? I have already read http://www.mail-archive.com/[email protected]/msg09181.html but can't find the answer there (according to Michael calling rollback() is good).
Best regards, Szymon -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
