diff options
author | unknown <msvensson@pilot.(none)> | 2007-08-08 18:09:21 +0200 |
---|---|---|
committer | unknown <msvensson@pilot.(none)> | 2007-08-08 18:09:21 +0200 |
commit | 7f9883fab578234d6a8b9e0a0e6fa6bc0a29a31e (patch) | |
tree | d91cfd94c7dc1b20a2b7b33a1369d68343a68468 /client | |
parent | 5bd6124ab9430ec33bc66048edfa2a59b342f8b5 (diff) | |
parent | ff985f06903c6a3c393c26c64a944f19337fcd36 (diff) | |
download | mariadb-git-7f9883fab578234d6a8b9e0a0e6fa6bc0a29a31e.tar.gz |
Merge pilot.(none):/data/msvensson/mysql/mysql-5.0-maint
into pilot.(none):/data/msvensson/mysql/mysql-5.1-new-maint
client/mysqltest.c:
Auto merged
mysql-test/t/mysqltest.test:
Auto merged
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index a8518c4363a..d11b5379d97 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -4806,9 +4806,13 @@ int read_command(struct st_command** command_ptr) if (!(command->query_buf= command->query= my_strdup(p, MYF(MY_WME)))) die("Out of memory"); - /* Calculate first word and first argument */ - for (p= command->query; *p && !my_isspace(charset_info, *p) ; p++) ; + /* Calculate first word length(the command), terminated by space or ( */ + p= command->query; + while (*p && !my_isspace(charset_info, *p) && *p != '(') + p++; command->first_word_len= (uint) (p - command->query); + DBUG_PRINT("info", ("first_word: %.*s", + command->first_word_len, command->query)); /* Skip spaces between command and first argument */ while (*p && my_isspace(charset_info, *p)) |