title: SQL query returns data but ResultSet is empty
body: <p>i have searched in so questions but there is nothing like my problem. I've this easy SQL</p>
  
  <pre><code>SELECT MIN(date) 
  FROM table1 
  WHERE date &gt; date1 (obviously date1 is a parameter)
  </code></pre>
  
  <p>i tried to catch the empty resultSet with if(rset.next()) but it didn't work because MIN() function returns EVER 1 row though it is an empty row, so what can i do to catch it?</p>
  
  <p>Thanks in advance</p>