Re: mac typo prob? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: mac typo prob?
Date
Msg-id 28777.1034520944@sss.pgh.pa.us
Whole thread Raw
In response to mac typo prob?  (Patrick Welche <prlw1@newn.cam.ac.uk>)
List pgsql-hackers
Patrick Welche <prlw1@newn.cam.ac.uk> writes:
> I just cut and pasted someone's mac address:
> patrimoine=# update ethernet set mac='00-00-39-AB-92-FO' where id=623;
> UPDATE 1
> patrimoine=# select mac from ethernet where id=623;
>         mac        
> -------------------
>  00:00:39:ab:92:0f
> (1 row)


> Note the typo "O" instead of "0". I can see how that happened - should it
> be "notify"ed against?

No, it should be an error IMHO.  macaddr_in() is failing to check for
trailing junk, which is a standard problem for sscanf-based parsing...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: experiences with autocommit functionality in 7.3
Next
From: Tom Lane
Date:
Subject: Re: experiences with autocommit functionality in 7.3