diff options
author | Tom Lane | 2006-09-09 04:07:52 +0000 |
---|---|---|
committer | Tom Lane | 2006-09-09 04:07:52 +0000 |
commit | dff84dc762bd225dbf69f5baa639560310053a74 (patch) | |
tree | b38d627b5c18a99cd62b85e4d45a4b021177ba50 /contrib/isn/UPC.h | |
parent | 42c17a6bb07f7400a14dffce687f14cc748fa064 (diff) |
Add contrib/isn module for ISBN/ISSN/EAN13/etc product numbers, and
remove the old isbn_issn module which is about to be obsoleted by EAN13.
contrib/isn is by Germán Méndez Bravo. Our thanks to Garrett A. Wollman
for having written the original isbn_issn module.
Diffstat (limited to 'contrib/isn/UPC.h')
-rw-r--r-- | contrib/isn/UPC.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/contrib/isn/UPC.h b/contrib/isn/UPC.h new file mode 100644 index 00000000000..2491fa3ee22 --- /dev/null +++ b/contrib/isn/UPC.h @@ -0,0 +1,28 @@ +/* + * ISSN.h + * PostgreSQL type definitions for ISNs (ISBN, ISMN, ISSN, EAN13, UPC) + * + * No information available for UPC prefixes + * + * + * IDENTIFICATION + * $PostgreSQL: pgsql/contrib/isn/UPC.h,v 1.1 2006/09/09 04:07:52 tgl Exp $ + * + */ + +/* where the digit set begins, and how many of them are in the table */ +const unsigned UPC_index[10][2] = { + {0, 0}, + {0, 0}, + {0, 0}, + {0, 0}, + {0, 0}, + {0, 0}, + {0, 0}, + {0, 0}, + {0, 0}, + {0, 0}, +}; +const char *UPC_range[][2] = { + {NULL, NULL} +}; |