Fixed quote issue when using another db platform

Hi this a pull request concerning this issue :
https://github.com/l3pp4rd/DoctrineExtensions/issues/995

closes #995

Tests run without issues.
Could you take a quick look at that ?
Thanks