Re: Bug #432: Macaddr accepts empty string

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: daniel(at)deadlock(dot)et(dot)tudelft(dot)nl, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #432: Macaddr accepts empty string
Date: 2001-09-03 17:52:28
Message-ID: 5495.999539548@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)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

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2001-09-03 18:04:10 Re: postmaster quits
Previous Message Tom Lane 2001-09-03 17:42:26 Re: RE: Error on postgresql driver (or pg_hba)