Do not set SQL_MODE globally (set it per-connection).