ISN extension bug?

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: ISN extension bug?
Date: 2013-12-21 08:49:17
Message-ID: alpine.DEB.2.10.1312210942490.1231@sto
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hello devs,

ISTM that there is an issue on the ISMN type:

sh> psql
psql (9.3.2)
Type "help" for help.
# CREATE EXTENTION isn;
# SELECT ISMN 'M123456782';
M-1234-5678-5

*** The 2 is changed to 5 in the display...

# SELECT ISMN 'M123456785';
ERROR: invalid check digit for ISMN number: "M123456785", should be 2
LINE 1: SELECT ISMN 'M123456785';
^
# SELECT ISMN 'M-1234-5678-5';
ERROR: invalid check digit for ISMN number: "M-1234-5678-5", should be 2
LINE 1: SELECT ISMN 'M-1234-5678-5';
^

--
Fabien.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Sergey Konoplev 2013-12-21 09:04:00 Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages
Previous Message Pavel Stehule 2013-12-21 08:41:12 Re: make_interval ??