Patches issue with SQLCE MAX sql call
Patches broken test
#M-381 Fixed