SONAR-5758 fix SQL request