code: public int executeUpdate(final String query) throws SQLException {
          startTimer();
          try {
              if (queryResult != null) {
                  queryResult.close();
              }
              warningsCleared = false;
              if(inputStream == null)
                  queryResult = protocol.executeQuery(queryFactory.createQuery(query));
              else 
                  queryResult = protocol.executeQuery(queryFactory.createQuery(query), inputStream);
              return (int) ((ModifyQueryResult) queryResult).getUpdateCount();
          } catch (QueryException e) {
              throw SQLExceptionMapper.get(e);
          }
          finally
          {
              stopTimer();
              if(inputStream != null)
              {
                  try
                  {
                      inputStream.close();
                  }
                  catch (IOException e)
                  {
                  }
                  inputStream = null;
              }
          }
      }
docs: Executes an update.
  
  @param query the update query.
  @return update count
  @throws SQLException if the query could not be sent to server.