title: Postgres Exception : No results were returned by the query.
body: <p>I am trying to insert some rows in to a table... I am using <strong>postgressql-7.2.jar.</strong></p>
  
  <p>I get the following exception</p>
  
  <blockquote>
    <p>org.postgresql.util.PSQLException: No results were returned by the query.<br>
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:255)</p>
  </blockquote>
  
  <p>I have already Googled and the possible reasons suggested are </p>
  
  <ol>
  <li><p>Use <code>executeUpdate()</code> method or <code>execute()</code> method instead of <code>executeQuery()</code> method.</p></li>
  <li><p>This could possibly be because of jar problem; try other versions of postgres jars.</p></li>
  <li><p>In some places they save it could be because of heap space error.</p></li>
  </ol>
  
  <p>I have tried all the three solutions but none of them work...</p>
  
  <p>I am not pasting the code since I have just used <code>statement.executeUpdate(queryString)</code>.
  The <strong>insert statements</strong> load the data in to the table but still I get this error. </p>
  
  <p>Can some one help me out in this?</p>