MDL-38197 tool_generator: fix use of raw LIKE sql