diff options
author | unknown <petr@mysql.com> | 2006-02-18 02:50:50 +0300 |
---|---|---|
committer | unknown <petr@mysql.com> | 2006-02-18 02:50:50 +0300 |
commit | a2c1e816ffa1e1cef48a90b5deab0d021e46321c (patch) | |
tree | c9c0b993785191ce005f399867a7721bad5ad166 /server-tools/instance-manager | |
parent | eae6679fd4a55a1798f2c20385507f869c85e7a6 (diff) | |
parent | 8a4ebb52325702b2e781e11f730e1df78bceaef9 (diff) | |
download | mariadb-git-a2c1e816ffa1e1cef48a90b5deab0d021e46321c.tar.gz |
Merge mysql.com:/home/cps/mysql/trees/5.0/mysql-5.0-virgin-debug
into mysql.com:/home/cps/mysql/devel/im/5.0-im-add-error-message
Diffstat (limited to 'server-tools/instance-manager')
-rw-r--r-- | server-tools/instance-manager/parse.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/server-tools/instance-manager/parse.cc b/server-tools/instance-manager/parse.cc index 9d9064240d4..4a8e85faf8f 100644 --- a/server-tools/instance-manager/parse.cc +++ b/server-tools/instance-manager/parse.cc @@ -143,7 +143,7 @@ Command *parse_command(Instance_map *map, const char *text) instance_name_len= word_len; text+= word_len; /* it should be the end of command */ - get_word(&text, &word_len); + get_word(&text, &word_len, NONSPACE); if (word_len) goto syntax_error; @@ -156,7 +156,7 @@ Command *parse_command(Instance_map *map, const char *text) if (shift_token(&text, &word_len) != TOK_INSTANCES) goto syntax_error; - get_word(&text, &word_len); + get_word(&text, &word_len, NONSPACE); if (word_len) goto syntax_error; @@ -197,7 +197,7 @@ Command *parse_command(Instance_map *map, const char *text) } /* should be empty */ - get_word(&text, &word_len); + get_word(&text, &word_len, NONSPACE); if (word_len) goto syntax_error; @@ -213,7 +213,7 @@ Command *parse_command(Instance_map *map, const char *text) case TOK_SHOW: switch (shift_token(&text, &word_len)) { case TOK_INSTANCES: - get_word(&text, &word_len); + get_word(&text, &word_len, NONSPACE); if (word_len) goto syntax_error; command= new Show_instances(map); @@ -226,7 +226,7 @@ Command *parse_command(Instance_map *map, const char *text) goto syntax_error; text+= instance_name_len; /* check that this is the end of the command */ - get_word(&text, &word_len); + get_word(&text, &word_len, NONSPACE); if (word_len) goto syntax_error; if (tok2 == TOK_STATUS) @@ -250,7 +250,7 @@ Command *parse_command(Instance_map *map, const char *text) case TOK_LOG: switch (Token tok3= shift_token(&text, &word_len)) { case TOK_FILES: - get_word(&text, &word_len); + get_word(&text, &word_len, NONSPACE); /* check that this is the end of the command */ if (word_len) goto syntax_error; @@ -293,7 +293,10 @@ Command *parse_command(Instance_map *map, const char *text) command= new Show_instance_log(map, instance_name, instance_name_len, log_type, log_size, text); - + get_word(&text, &word_len, NONSPACE); + /* check that this is the end of the command */ + if (word_len) + goto syntax_error; break; case '\0': command= new Show_instance_log(map, instance_name, |