Conditioning HAVING clause tests by SphinxSearch version