Patch to fix adapter_name nil error with MySQL