SQOOP-976: Incorrect SQL when incremental criteria is text column

(Raghav Kumar Gautam via Jarek Jarcec Cecho)