pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Fix output of ISBN-13 numbers beginning with 979.
Date: Sun, 02 Aug 2015 19:17:16 +0000
Message-ID: <E1ZLyl2-0007p2-47@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Fix output of ISBN-13 numbers beginning with 979.

An EAN beginning with 979 (but not 9790 - those are ISMN's) are accepted
as ISBN numbers, but they cannot be represented in the old, 10-digit ISBN
format. They must be output in the new 13-digit ISBN-13 format. We printed
out an incorrect value for those.

Also add a regression test, to test this and some other basic functionality
of the module.

Patch by Fabien Coelho. This fixes bug #13442, reported by B.Z. Backpatch
to 9.1, where we started to recognize ISBN-13 numbers.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/ea8385df6ce95507951f6c12fa4defb5b3ba9cda

Modified Files
--------------
contrib/isn/Makefile         |    2 +
contrib/isn/expected/isn.out |  222 ++++++++++++++++++++++++++++++++++++++++++
contrib/isn/isn.c            |   27 +++--
contrib/isn/sql/isn.sql      |  104 ++++++++++++++++++++
4 files changed, 345 insertions(+), 10 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (6+ messages)  latest in thread

Message-ID: <E1ZLyl2-0007p2-47@gemulon.postgresql.org>
Permalink:  ../E1ZLyl2-0007p2-47@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ZLyl2-0007p2-47@gemulon.postgresql.org

 · 

reply

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-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Fix output of ISBN-13 numbers beginning with 979.
  In-Reply-To: <E1ZLyl2-0007p2-47@gemulon.postgresql.org>
  References: <E1ZLyl2-0007p2-47@gemulon.postgresql.org>

* 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