fix collation query error when switching from 5.5 server to 5.0