A workaround for MySQL driver.