code: public void resetStateAfterFailover(long maxRows, int transactionIsolationLevel, String database,
        boolean autocommit) throws SQLException {
      setMaxRows(maxRows);
  
      if (transactionIsolationLevel != 0) {
        setTransactionIsolation(transactionIsolationLevel);
      }
  
      if (database != null && !"".equals(database) && !getDatabase().equals(database)) {
        setCatalog(database);
      }
  
      if (getAutocommit() != autocommit) {
        executeQuery("set autocommit=" + (autocommit ? "1" : "0"));
      }
    }
docs: TODO set all client affected variables when implementing CONJ-319