Re: Bug #432: Macaddr accepts empty string - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #432: Macaddr accepts empty string
Date
Msg-id 5495.999539548@sss.pgh.pa.us
Whole thread Raw
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: RE: Error on postgresql driver (or pg_hba)
Next
From: Tom Lane
Date:
Subject: Re: postmaster quits