Re: BUG #13442: ISBN doesn't always roundtrip with text

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bz(at)mailinator(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text
Date: 2015-06-15 17:26:15
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

bz(at)mailinator(dot)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

In response to


Browse pgsql-bugs by date

  From Date Subject
Next Message Jeff Janes 2015-06-15 17:36:30 Re: BUG #13444: psql can't recover a pg_dump.
Previous Message Tom Lane 2015-06-15 16:43:08 Re: BUG #13438: Restore using GUI client - Data Not Loading