title: Getting "Method executeQuery cannot be used for update" for NOT update queries
body: <p>I try to retrieve information about databases and tables of a DB2 System.
  The kotlin application successfully connects with the database but when I execute a query (see code below) I always get the error message &quot;Method executeQuery cannot be used for update&quot; even though I do not execute an update query.</p>
  <pre><code>    connection = DriverManager.getConnection(config.connectionString)
      val statement: Statement = connection!!.createStatement()
      val query = &quot;DISPLAY DATABASE&quot;
      //val query = &quot;LIST TABLES&quot;
      val resultSet: ResultSet = statement.executeQuery(query)
  </code></pre>
  <p>Error message:</p>
  <pre><code>com.ibm.db2.jcc.am.SqlException: [jcc][10103][10941][4.29.24] Method executeQuery cannot be used for update. ERRORCODE=-4476, SQLSTATE=null&quot;
  </code></pre>
  <p>Can someone tell me what I'm doing wrong?</p>