diff options
author | unknown <paul@snake-hub.snake.net> | 2006-03-03 13:57:49 -0600 |
---|---|---|
committer | unknown <paul@snake-hub.snake.net> | 2006-03-03 13:57:49 -0600 |
commit | 3d997647aa3a74b0e637afda989c948081877e5e (patch) | |
tree | dea63d6eb14940945f484b7a165c59ea99cd2256 /client | |
parent | b7ca53421507f3efba4b5471438863928cfe1b76 (diff) | |
download | mariadb-git-3d997647aa3a74b0e637afda989c948081877e5e.tar.gz |
mysqltest.c:
Better fix for do_sleep().
client/mysqltest.c:
Better fix for do_sleep().
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index a525adfd819..3f2e7d8edb6 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -1550,19 +1550,20 @@ int do_sleep(struct st_query *query, my_bool real_sleep) char *p= query->first_argument; char *sleep_start, *sleep_end= query->end; double sleep_val; - char *cmd = (real_sleep ? "real_sleep" : "sleep"); while (my_isspace(charset_info, *p)) p++; if (!*p) - die("Missing argument to %s", cmd); + die("Missing argument to %.*s", query->first_word_len, query->query); sleep_start= p; /* Check that arg starts with a digit, not handled by my_strtod */ if (!my_isdigit(charset_info, *sleep_start)) - die("Invalid argument to %s \"%s\"", cmd, query->first_argument); + die("Invalid argument to %.*s \"%s\"", query->first_word_len, query->query, + query->first_argument); sleep_val= my_strtod(sleep_start, &sleep_end, &error); if (error) - die("Invalid argument to %s \"%s\"", cmd, query->first_argument); + die("Invalid argument to %.*s \"%s\"", query->first_word_len, query->query, + query->first_argument); /* Fixed sleep time selected by --sleep option */ if (opt_sleep && !real_sleep) |