Thread: Re: Bug #432: Macaddr accepts empty string

Re: Bug #432: Macaddr accepts empty string

From
Tom Lane
Date:
pgsql-bugs@postgresql.org writes:
> The datatype macaddr accepts empty strings as data. I think this is
> not correct; an empty string is no valid mac address.

This is already changed for 7.2.

regression=# select ''::macaddr;
ERROR:  macaddr_in: error in parsing ""
regression=#

            regards, tom lane