[#138] store original query text to detect changes