SONAR-3755 IssueDAO select query to work on all databases