06.06.2015, 18:27
You don't need that check - the MySQL plugin does it already (if you have auto-reconnect set to 'true' in 'mysql_connect').
Also the "CR_SERVER_GONE_ERROR" error has the error id '2006', thus it does not reconnect because "OnQueryError" reports the error id '2003'. Basically your code is doing its job: printing the error id and message if it's not the 'CR_SERVER_GONE_ERROR' error.
Also the "CR_SERVER_GONE_ERROR" error has the error id '2006', thus it does not reconnect because "OnQueryError" reports the error id '2003'. Basically your code is doing its job: printing the error id and message if it's not the 'CR_SERVER_GONE_ERROR' error.