Re: ISBN/ISSN/ISMN/EAN13 module - Mailing list pgsql-hackers

From Jeremy Kronuz
Subject Re: ISBN/ISSN/ISMN/EAN13 module
Date
Msg-id BAY107-F56D0554E38EF428D3F1E6D8340@phx.gbl
Whole thread Raw
In response to Re: ISBN/ISSN/ISMN/EAN13 module  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I also added other functionality to the module but I forgot to update the 
README... contrary to what it says in the README.isn, you do can cast from 
ean13 to other types, as long as the cast is valid (i.e. you can't cast a 
EAN13 of a UPC or a ISMN code to a ISBN number, for instance.)

So, the text starting at line 184 in the README.isn should say something 
like this instead:

-- note that you can only cast from ean13 to other type when the casted
-- number would be valid in the realm of the casted type;
-- thus, the following will NOT work: select isbn(ean13('0220356483481'));
-- but these will:select upc(ean13('0220356483481'));select ean13(upc('220356483481'));

(this is not in my patch, I just realized about this)

Kronuz.
"Fools rush in where fools have been before" � Unknown




pgsql-hackers by date:

Previous
From: "MAR - Secretariado Geral"
Date:
Subject: Foreign keys
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Release notes