diff options
author | unknown <monty@mysql.com> | 2005-05-13 14:04:32 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-05-13 14:04:32 +0300 |
commit | 2a695127a65a321b98f0db6f1b113af3403376e3 (patch) | |
tree | e79a2291f34c9b4f5b7aa00b0d318368038008da /sql/hostname.cc | |
parent | cbbc4ff6a25accdd3e11a0e2719c2201d23a7b68 (diff) | |
download | mariadb-git-2a695127a65a321b98f0db6f1b113af3403376e3.tar.gz |
Fixes during review
mysql-test/r/select.result:
Better error message
mysql-test/t/select.test:
Better error message
sql/hostname.cc:
Join identical code
sql/sql_yacc.yy:
Combine code (and get a better error message)
strings/ctype-ucs2.c:
Cast pointer differencess
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r-- | sql/hostname.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc index ec5c6f29a27..39223556024 100644 --- a/sql/hostname.cc +++ b/sql/hostname.cc @@ -209,8 +209,8 @@ my_string ip_to_hostname(struct in_addr *in, uint *errors) DBUG_PRINT("error",("gethostbyaddr returned %d",errno)); if (errno == HOST_NOT_FOUND || errno == NO_DATA) - add_wrong_ip(in); /* only cache negative responses, not failures */ - + goto add_wrong_ip_and_return; + /* Failure, don't cache responce */ DBUG_RETURN(0); } if (!hp->h_name[0]) // Don't allow empty hostnames |