code: protected int calcFetchSizeForStream(int hintFetchSize, Connection conn) throws SQLException {
          DatabaseVendor dbVendor = DbcHelper.detectDbVendor(conn);
          switch (dbVendor) {
          case MYSQL:
              return Integer.MIN_VALUE;
          default:
              return hintFetchSize < 0 ? 1 : hintFetchSize;
          }
      }
docs: Calculate fetch size used for streaming.
  
  @param hintFetchSize
  @param conn
  @return
  @throws SQLException