mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
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).
This commit is contained in:
parent
f755509694
commit
b1af9693e0
1 changed files with 9 additions and 6 deletions
|
|
@ -1034,16 +1034,19 @@ get_options(int *argc,char ***argv)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (auto_generate_sql &&
|
/*
|
||||||
((auto_generate_sql_autoincrement == FALSE) ||
|
We are testing to make sure that if someone specified a key search
|
||||||
(auto_generate_sql_guid_primary == FALSE)) &&
|
that we actually added a key!
|
||||||
auto_generate_sql_type[0] == 'k')
|
*/
|
||||||
{
|
if (auto_generate_sql && auto_generate_sql_type[0] == 'k')
|
||||||
|
if ( auto_generate_sql_autoincrement == FALSE &&
|
||||||
|
auto_generate_sql_guid_primary == FALSE)
|
||||||
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"%s: Can't perform key test without a primary key!\n",
|
"%s: Can't perform key test without a primary key!\n",
|
||||||
my_progname);
|
my_progname);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue