(refs #341)Fix compilation error other than date mapping and delete statement