Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
- {
- printf("[MySQL] Query Error - (Thread: %d) (ExtraID: %d) (ErrorID: %d)", resultid, extraid, errorid);
- print("[MySQL] Check /logs/querydump.log to review the query that threw the error.");
- Log("logs/querydump.log", query);
- if(resultid != -1)
- {
- if(errorid == 2013 || errorid == 2014 || errorid == 2006 || errorid == 2027 || errorid == 2055)
- {
- print("[MySQL] Connection Error Detected in Threaded Query, Attempting to Re-send Query.");
- mysql_query(query, resultid, extraid, MainPipeline);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement