diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/catalog/pg_proc.h | 10 | ||||
-rw-r--r-- | src/include/utils/ascii.h | 27 |
2 files changed, 36 insertions, 1 deletions
diff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h index 3703689d96b..4bc8609521f 100644 --- a/src/include/catalog/pg_proc.h +++ b/src/include/catalog/pg_proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pg_proc.h,v 1.159 2000/08/04 20:46:43 momjian Exp $ + * $Id: pg_proc.h,v 1.160 2000/08/05 14:59:19 momjian Exp $ * * NOTES * The script catalog/genbki.sh reads this file and generates .bki @@ -2442,6 +2442,14 @@ DESCR("aggregate transition function"); DATA(insert OID = 1844 ( interval_avg PGUID 12 f t t t 1 f 1186 "1187" 100 0 0 100 interval_avg - )); DESCR("AVG aggregate final function"); +/* To ASCII conversion */ +DATA(insert OID = 1845 ( to_ascii PGUID 12 f t t t 1 f 25 "25" 100 0 0 100 to_ascii_default - )); +DESCR("encode text from DB encoding to ASCII text"); +DATA(insert OID = 1846 ( to_ascii PGUID 12 f t t t 2 f 25 "25 23" 100 0 0 100 to_ascii_enc - )); +DESCR("encode text from encoding to ASCII text"); +DATA(insert OID = 1847 ( to_ascii PGUID 12 f t t t 2 f 25 "25 19" 100 0 0 100 to_ascii_encname - )); +DESCR("encode text from encoding to ASCII text"); + DATA(insert OID = 1850 ( int28eq PGUID 12 f t t t 2 f 16 "21 20" 100 0 0 100 int28eq - )); DESCR("equal"); DATA(insert OID = 1851 ( int28ne PGUID 12 f t t t 2 f 16 "21 20" 100 0 0 100 int28ne - )); diff --git a/src/include/utils/ascii.h b/src/include/utils/ascii.h index e69de29bb2d..c29d2dc904c 100644 --- a/src/include/utils/ascii.h +++ b/src/include/utils/ascii.h @@ -0,0 +1,27 @@ + +/* ----------------------------------------------------------------------- + * ascii.h + * + * $Id: ascii.h,v 1.3 2000/08/05 14:59:29 momjian Exp $ + * + * Portions Copyright (c) 1999-2000, PostgreSQL, Inc + * + * ----------------------------------------------------------------------- + */ + +#ifndef _ASCII_H_ +#define _ASCII_H_ + +#include "fmgr.h" + +extern Datum to_ascii_encname(PG_FUNCTION_ARGS); +extern Datum to_ascii_enc(PG_FUNCTION_ARGS); +extern Datum to_ascii_default(PG_FUNCTION_ARGS); + +#ifdef MULTIBYTE + +extern char *pg_to_ascii(unsigned char *src, unsigned char *src_end, + unsigned char *desc, int enc); +#endif /* MULTIBYTE */ + +#endif /* _ASCII_H_ */ |