TEIIDDES-1928 handle escaping of single quote in SQL statement