When where has datatime compare,query explain has error.