Open emanresusername opened 7 years ago
The 192.168.2.0/24
string does not have a vaild format for an InetAddress.
https://docs.oracle.com/javase/8/docs/api/java/net/InetAddress.html https://docs.oracle.com/javase/8/docs/api/java/net/Inet4Address.html#format
Its really represents not a single InetAddress but some tuple like (InetAddress, subnet mask length). You might try selecting the address bits itself and the mask as two separate columns and expect these columns in a result set.
yeah, i guess i should rephrase the title there to clarify i'm mean the format for the inet
postgres keyword as opposed to the java InetAddress
From https://www.postgresql.org/docs/9.3/static/datatype-net-types.html
Tip: If you do not like the output format for inet or cidr values, try the functions host, text, and abbrev
I suggest selecting the host bits and the subnet mask as two separate columns (not sure how it should be done in your ORM though)
possibly related to https://github.com/mauricio/postgresql-async/pull/57 and i'm getting to this from quill, so i'm not 100% sure if there's a way to get around it at that level, but i don't see any quill lines in the stacktrace I can't get inet values like
192.168.2.0/24
to work i get the following error