Fixed MySQL failing test introduced by c86a9b6
Merge pull request #1282 from loic/ticket6903

Fixed failing test on MySQL since c86a9b6