sync mysql behavior with sqlite
Merge pull request #229 from fudanchii/mysql-fix

sync mysql behavior with sqlite