Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. public OnQueryError(errorid, error[], resultid, extraid, callback[], query[], connectionHandle)
  2. {
  3. printf("[MySQL] Query Error - (Thread: %d) (ExtraID: %d) (ErrorID: %d)", resultid, extraid, errorid);
  4. print("[MySQL] Check /logs/querydump.log to review the query that threw the error.");
  5. Log("logs/querydump.log", query);
  6.  
  7. if(resultid != -1)
  8. {
  9. if(errorid == 2013 || errorid == 2014 || errorid == 2006 || errorid == 2027 || errorid == 2055)
  10. {
  11. print("[MySQL] Connection Error Detected in Threaded Query, Attempting to Re-send Query.");
  12. mysql_query(query, resultid, extraid, MainPipeline);
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement