summaryrefslogtreecommitdiff
path: root/src/include/mb
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-10-15 22:46:27 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-10-15 22:46:27 +0000
commitfebd60bf5db947ff3ebc0ffa8097f2b7a7629611 (patch)
treef453ad5bcb415be291a072e5c6211b2faa300d27 /src/include/mb
parent4b21d1f09b96a1a76a72ebc752daeeff77555801 (diff)
downloadpostgresql-febd60bf5db947ff3ebc0ffa8097f2b7a7629611.tar.gz
Fix pg_wchar_table[] to match revised ordering of the encoding ID enum.
Add some comments so hopefully the next poor sod doesn't fall into the same trap. (Wrong comments are worse than none at all...)
Diffstat (limited to 'src/include/mb')
-rw-r--r--src/include/mb/pg_wchar.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/mb/pg_wchar.h b/src/include/mb/pg_wchar.h
index 7660a7d585..34c1ec1d18 100644
--- a/src/include/mb/pg_wchar.h
+++ b/src/include/mb/pg_wchar.h
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/mb/pg_wchar.h,v 1.74 2007/10/13 20:18:41 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/mb/pg_wchar.h,v 1.75 2007/10/15 22:46:27 tgl Exp $
*
* NOTES
* This is used both by the backend and by libpq, but should not be
@@ -152,8 +152,9 @@ typedef unsigned int pg_wchar;
/*
* PostgreSQL encoding identifiers
*
- * WARNING: the order of this table must be same as order
- * in the pg_enc2name[] (mb/encnames.c) array!
+ * WARNING: the order of this enum must be same as order of entries
+ * in the pg_enc2name_tbl[] array (in mb/encnames.c), and
+ * in the pg_wchar_table[] array (in mb/wchar.c)!
*
* If you add some encoding don't forget to check
* PG_ENCODING_BE_LAST macro.