summaryrefslogtreecommitdiff
path: root/contrib/isn/UPC.h
diff options
context:
space:
mode:
authorTom Lane2006-09-09 04:07:52 +0000
committerTom Lane2006-09-09 04:07:52 +0000
commitdff84dc762bd225dbf69f5baa639560310053a74 (patch)
treeb38d627b5c18a99cd62b85e4d45a4b021177ba50 /contrib/isn/UPC.h
parent42c17a6bb07f7400a14dffce687f14cc748fa064 (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.h28
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}
+};