fix for CASE expression in query with offset in ms sql
fix for CASE expression in query with offset in ms sql

PatidarWeb/Propel,sh0dow/Propel,PatidarWeb/Propel,gencer/Propel,zachmay/Propel,halfer/Propel,adrianrusnarczyk/Propel,rozwell/Propel,bjdelange/Propel,tbl0605/Propel-pervasive,gencer/Propel,rozwell/Propel,propelorm/Propel,mhitza/Propel,AriaSystems/Propel,mhitza/Propel,tbl0605/Propel-pervasive,bjdelange/Propel,halfer/Propel,Egston/Propel,adrianrusnarczyk/Propel,AriaSystems/Propel,sh0dow/Propel,propelorm/Propel,Egston/Propel,zachmay/Propel