SQL SERVER compatibility fixes

Hello Hichem,

File changed: Util/Factory/Query/DoctrineBuilder.php 

Regards