- fix generic repository bug if mysql and option charset enabled