Re: Bug #432: Macaddr accepts empty string

From: Bruce Momjian <pgman(at)candle(dot)pha(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-04 04:36:51
Message-ID: 200109040436.f844apl20392@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Not any more:

test=> create table pp (x macaddr);
CREATE
test=> insert into pp values ('');
ERROR: macaddr_in: error in parsing ""

> Daniel Mantione (daniel(at)deadlock(dot)et(dot)tudelft(dot)nl) reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> Macaddr accepts empty string
>
> Long Description
> Hello,
>
> The datatype macaddr accepts empty strings as data. I think this is not correct; an empty string is no valid mac address.
>
> It should accept NULL (which it does).
>
> Greetings,
>
> Daniel Mantione
>
> Sample Code
>
>
> No file was uploaded with this report
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://www.postgresql.org/search.mpl
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

Browse pgsql-bugs by date

  From Date Subject
Next Message pierre 2001-09-04 06:59:16 postgresql v7.1.3 bug report
Previous Message pgsql-bugs 2001-09-04 03:33:19 Bug #437: postgresql-python rpm fails on mx dependency