title: IncorrectResultSizeDataAccessException when no entity is found. First returned when multiple are found
body: <p>I'm trying to find the reason for one strange behavior. Lets say I have Spring data repository which contains a few methods. One of them has a signature like this: </p>
  
  <pre><code>public Entity findByEntityKeyAndValidToDateAfterAndCorrectionDateAfter(BigInteger entityKey, Timestamp validToDate, Timestamp correctionDate);
  </code></pre>
  
  <p>I receive an issue with stacktrace with the following error: </p>
  
  <blockquote>
    <p>org.springframework.dao.IncorrectResultSizeDataAccessException</p>
  </blockquote>
  
  <p>I decided to add two records which have to be returned when I execute this query. 
  After calling this method instead of throwing the exception the query returns only one of the results. This was strange to my that is why I copy the query from the log and execute it on my SQL developer with the same parameters. The query return both results. I try to change the method signature to return list of entities: </p>
  
  <pre><code>public List&lt;Entity&gt; findByEntityKeyAndValidToDateAfterAndCorrectionDateAfter(BigInteger entityKey, Timestamp validToDate, Timestamp correctionDate);
  </code></pre>
  
  <p>In this case, the query returns two results. </p>
  
  <p>Any idea why this may happen? And why this query does not throw this exception? </p>
  
  <p>Spring data version is 1.10.1.RELEASE</p>