diff options
author | unknown <brian@zim.(none)> | 2007-03-13 10:27:59 -0700 |
---|---|---|
committer | unknown <brian@zim.(none)> | 2007-03-13 10:27:59 -0700 |
commit | b1af9693e0f5561142ae6ab1c55ac93de9abf6e5 (patch) | |
tree | d600dc71cb3782ca8474057a30dc29d06e9efe73 /client/mysqlslap.c | |
parent | f7555096945d3a300fe1f18501332eb8fd5d4d29 (diff) | |
download | mariadb-git-b1af9693e0f5561142ae6ab1c55ac93de9abf6e5.tar.gz |
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).
Diffstat (limited to 'client/mysqlslap.c')
-rw-r--r-- | client/mysqlslap.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 1976c54c393..1dc49aa06f3 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -1034,16 +1034,19 @@ 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", my_progname); exit(1); - } + } |