Commit f5428acd authored by unknown's avatar unknown
Browse files

added possibility for comment into management client

added sleep command to management client
all for testing purposes

parent 5380a3a6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -499,7 +499,8 @@ CommandInterpreter::execute_impl(const char *_line)
  line = my_strdup(_line,MYF(MY_WME));
  My_auto_ptr<char> ptr(line);
  
  if (emptyString(line)) {
  if (emptyString(line) ||
      line[0] == '#') {
    DBUG_RETURN(true);
  }
  
@@ -516,6 +517,11 @@ CommandInterpreter::execute_impl(const char *_line)
    executeConnect(allAfterFirstToken);
    DBUG_RETURN(true);
  }
  else if (strcasecmp(firstToken, "SLEEP") == 0) {
    if (allAfterFirstToken)
      sleep(atoi(allAfterFirstToken));
    DBUG_RETURN(true);
  }
  else if((strcasecmp(firstToken, "QUIT") == 0 ||
	  strcasecmp(firstToken, "EXIT") == 0 ||
	  strcasecmp(firstToken, "BYE") == 0) &&