From: Tom Lane <tgl@sss.pgh.pa.us>
To: bz@mailinator.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text
Date: Mon, 15 Jun 2015 13:26:15 -0400
Message-ID: <42501.1434389175@sss.pgh.pa.us> (raw)
In-Reply-To: <20150614155912.2732.93270@wrigleys.postgresql.org>
References: <20150614155912.2732.93270@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
bz@mailinator.com writes:
> I have a table containing ISBNs stored as the isbn type provided by the isn
> extension. In certain cases an ISBN in ISBN10 form is considered unequal to
> the same ISBN in ISBN13 form.
I poked at this a little bit. I think the issue may be that this bit
at line 832 in isn.c:
case ISBN:
memcpy(buf, "978", 3);
supposes that all ISBNs should have prefix 978, whereas your example is
using prefix 979, which seems to be also valid according to code a few
lines above. I don't know enough about the whole ISBN/EAN mess to
understand what this should be doing instead, though.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, bz@mailinator.com
Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text
In-Reply-To: <42501.1434389175@sss.pgh.pa.us>
References: <20150614155912.2732.93270@wrigleys.postgresql.org> <42501.1434389175@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox