fix issue then different constants in expression causes invalid SQL to be get from cache