diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-08-02 22:12:33 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-08-02 22:12:38 +0300 |
commit | ea8385df6ce95507951f6c12fa4defb5b3ba9cda (patch) | |
tree | 717944b573079f5048e87bf38c1e1849fe3322d8 /src/backend/utils/adt/numeric.c | |
parent | 72697d2ba77074713cd4008995a97cf284de1712 (diff) | |
download | postgresql-ea8385df6ce95507951f6c12fa4defb5b3ba9cda.tar.gz postgresql-ea8385df6ce95507951f6c12fa4defb5b3ba9cda.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions