TEIIDDES-1928 handle escaping of single quotes in the SQL