Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

like image 938
hdb3 Avatar asked Oct 21 '22 12:10

hdb3


1 Answers

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.

like image 77
hdb3 Avatar answered Oct 24 '22 05:10

hdb3