diff options
author | unknown <msvensson@neptunus.(none)> | 2006-03-20 21:41:27 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2006-03-20 21:41:27 +0100 |
commit | c7f8c632eb485566ddb6b98c924a78a15cbef2fc (patch) | |
tree | 316670b60bea41e56d82cc81ba41b4049cea2c66 /client | |
parent | 60bc9ad712c846b235d9856cf5cd9663a9ab076a (diff) | |
parent | b1aacfac72065ab4085199522f75bdaf1f44a088 (diff) | |
download | mariadb-git-c7f8c632eb485566ddb6b98c924a78a15cbef2fc.tar.gz |
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.1
into neptunus.(none):/home/msvensson/mysql/bug11835/my51-bug11835
client/mysqltest.c:
Auto merged
configure.in:
Auto merged
mysql-test/mysql-test-run.pl:
Auto merged
sql/item_func.cc:
Auto merged
sql/sql_udf.cc:
Auto merged
sql/share/errmsg.txt:
Auto merged
Diffstat (limited to 'client')
-rw-r--r-- | client/mysqltest.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 5bcd086672d..a223081cf3f 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -408,8 +408,10 @@ const char *command_names[]= "enable_rpl_parse", "disable_rpl_parse", "eval_result", + /* Enable/disable that the _query_ is logged to result file */ "enable_query_log", "disable_query_log", + /* Enable/disable that the _result_ from a query is logged to result file */ "enable_result_log", "disable_result_log", "server_start", @@ -789,8 +791,8 @@ err: check_result ds - content to be checked fname - name of file to check against - require_option - if set and check fails, the test will be aborted with the special - exit code "not supported test" + require_option - if set and check fails, the test will be aborted + with the special exit code "not supported test" RETURN VALUES error - the function will not return @@ -4288,7 +4290,17 @@ static void handle_error(const char *query, struct st_query *q, DBUG_ENTER("handle_error"); if (q->require_file) + { + /* + The query after a "--require" failed. This is fine as long the server + returned a valid reponse. Don't allow 2013 or 2006 to trigger an + abort_not_supported_test + */ + if (err_errno == CR_SERVER_LOST || + err_errno == CR_SERVER_GONE_ERROR) + die("require query '%s' failed: %d: %s", query, err_errno, err_error); abort_not_supported_test(); + } if (q->abort_on_error) die("query '%s' failed: %d: %s", query, err_errno, err_error); |