Commit b1af9693 authored by unknown's avatar unknown
Browse files

Added comment, and fixed test.


client/mysqlslap.c:
  Comment added (and extended if() so that I didn't have to keep looking at it to make sure it was right).
parent f7555096
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -1034,10 +1034,13 @@ get_options(int *argc,char ***argv)
      exit(1);
  }

  if (auto_generate_sql && 
      ((auto_generate_sql_autoincrement == FALSE) ||
       (auto_generate_sql_guid_primary == FALSE)) &&
      auto_generate_sql_type[0] == 'k')
  /* 
    We are testing to make sure that if someone specified a key search
    that we actually added a key!
  */
  if (auto_generate_sql && auto_generate_sql_type[0] == 'k')
    if ( auto_generate_sql_autoincrement == FALSE &&
         auto_generate_sql_guid_primary == FALSE)
    {
      fprintf(stderr,
              "%s: Can't perform key test without a primary key!\n",