MySQL documentation says that: Data type VARBINARY(16) is for IPv6 addresses and data type VARBINARY(4) is for IPv4 addresses.
But when I try to store INET_ATON result to VARBINARY(4) column, I get the following error message:
Data too long for column varbinary(4)
Storing INET_ATON result to VARBINARY(16) is OK!
What's wrong?