title: SqlExceptionHelper : ERROR: function count(character varying, integer) does not exist
body: <p>I have a spring application and I have a native query with this syntax:</p>
  
  <pre><code>select  
      COUNT(DISTINCT person.id,(CASE WHEN salary_person.rating = 'Satisfactory' THEN 1 END)) AS totalSatisfactory, 
      COUNT(DISTINCT person.id,(CASE WHEN salary_person.rating = 'Unsatisfactory' THEN 1 END)) AS totalUnsatisfactory
      from person
      join salary_person on person.id = salary_person.person_id;   
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code> ERROR: function count(character varying, integer) does not exist
  </code></pre>
  
  <p>As database I use PostgreSQL. I mention that in mysql, the query is working.</p>