diff options
author | unknown <monty@hundin.mysql.fi> | 2002-04-02 17:42:01 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-04-02 17:42:01 +0300 |
commit | 389e946182b82917b3a612a280aabfcc6e88db8d (patch) | |
tree | c58a80bda22774a430aec5183fd320d15bd29e03 /sql/item_strfunc.cc | |
parent | b344dbc2da2811e6c31274c3aa3b3df56fa0bdf6 (diff) | |
download | mariadb-git-389e946182b82917b3a612a280aabfcc6e88db8d.tar.gz |
Fixed help typos in mysql.cc
client/mysql.cc:
Fixed typos
configure.in:
Cleanup
sql/ha_innobase.cc:
Safety patch
sql/item_strfunc.cc:
cleanup
Diffstat (limited to 'sql/item_strfunc.cc')
-rw-r--r-- | sql/item_strfunc.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sql/item_strfunc.cc b/sql/item_strfunc.cc index bd7fde79629..0321d37c0fe 100644 --- a/sql/item_strfunc.cc +++ b/sql/item_strfunc.cc @@ -1720,18 +1720,21 @@ String* Item_func_inet_ntoa::val_str(String* str) uchar buf[8], *p; ulonglong n = (ulonglong) args[0]->val_int(); char num[4]; - // we do not know if args[0] is NULL until we have called - // some val function on it if args[0] is not a constant! + /* + we do not know if args[0] is NULL until we have called + some val function on it if args[0] is not a constant! + */ if ((null_value=args[0]->null_value)) return 0; // Null value + str->length(0); int8store(buf,n); - // now we can assume little endian - // we handle the possibility of an 8-byte IP address - // however, we do not want to confuse those who are just using - // 4 byte ones - + /* + Now we can assume little endian. + We handle the possibility of an 8-byte IP address however, we do + not want to confuse those who are just using 4 byte ones + */ for (p= buf + 8; p > buf+4 && p[-1] == 0 ; p-- ) ; num[3]='.'; while (p-- > buf) |