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

From Bruce Momjian
Subject Re: Bug #432: Macaddr accepts empty string
Date
Msg-id 200109040436.f844apl20392@candle.pha.pa.us
Whole thread Raw
List 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@deadlock.et.tudelft.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@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #437: postgresql-python rpm fails on mx dependency
Next
From: "PC Drew"
Date:
Subject: linking with readline