Patch for mysqli driver