hdb3
hdb3

Reputation: 259

HDBC ODBC MySQL - query only fails when compiled

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

Answers (1)

hdb3
hdb3

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

Related Questions