add expr: (#198)

This commit is contained in:
2149
2021-08-31 15:42:09 +08:00
committed by wangzelin.wzl
parent 4c03c7163e
commit f8b75754ce
20 changed files with 3673 additions and 109 deletions

View File

@ -73,6 +73,7 @@ int ObExprInt2ip::int2ip(ObObj& result, const int64_t int_val, ObExprStringBuf&
} else {
in_addr addr;
addr.s_addr = htonl(static_cast<uint32_t>(int_val));
// Fix me,The problem with inet_ntop() is that it is available starting from Windows Vista, but the minimum supported version is Windows 2000.
const char* iret = inet_ntop(AF_INET, &addr, buf, 16);
if (OB_ISNULL(iret)) {
ret = OB_ERR_UNEXPECTED;