Reputation: 259
My program runs with runghc but the same program consistently fails when compiled with error "Lost connection to MySQL server during query". The fail is not associated with a long running query (it is a CREATE VIEW on a small table). There is nothing in the MySQL error-log, and log_warnings=1. Environment - ubuntu (13.04 ;-), local database)
Upvotes: 5
Views: 441
Reputation: 259
HDBC.ODBC must use 'withRTSSignalsBlocked' to protect all database access actions, or risk random failures such as I describe. This was effectively confirmed by the author of the library.
Upvotes: 3