diff options
author | Marc G. Fournier <scrappy@hub.org> | 1998-04-27 17:10:50 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1998-04-27 17:10:50 +0000 |
commit | f554af0a9fdbe0e9636fce36d6c809e81ce1539c (patch) | |
tree | 3cd60fe19a94c78e774ac3b70ef3d729f7896f20 /src/include/utils/builtins.h | |
parent | 2cbcf461028dee105f69328e4589f08a4f59db91 (diff) | |
download | postgresql-f554af0a9fdbe0e9636fce36d6c809e81ce1539c.tar.gz postgresql-f554af0a9fdbe0e9636fce36d6c809e81ce1539c.zip |
From: t-ishii@sra.co.jp
Hi, here are patches I promised (against 6.3.2):
* character_length(), position(), substring() are now aware of
multi-byte characters
* add octet_length()
* add --with-mb option to configure
* new regression tests for EUC_KR
(contributed by "Soonmyung. Hong" <hong@lunaris.hanmesoft.co.kr>)
* add some test cases to the EUC_JP regression test
* fix problem in regress/regress.sh in case of System V
* fix toupper(), tolower() to handle 8bit chars
note that:
o patches for both configure.in and configure are
included. maybe the one for configure is not necessary.
o pg_proc.h was modified to add octet_length(). I used OIDs
(1374-1379) for that. Please let me know if these numbers are not
appropriate.
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 44def35ef78..9e83ba12e60 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.40 1998/04/26 04:09:25 momjian Exp $ + * $Id: builtins.h,v 1.41 1998/04/27 17:09:28 scrappy Exp $ * * NOTES * This should normally only be included by fmgr.h. @@ -400,6 +400,7 @@ extern bool bpchargt(char *arg1, char *arg2); extern bool bpcharge(char *arg1, char *arg2); extern int32 bpcharcmp(char *arg1, char *arg2); extern int32 bpcharlen(char *arg); +extern int32 bpcharoctetlen(char *arg); extern uint32 hashbpchar(struct varlena * key); extern char *varcharin(char *s, int dummy, int16 atttypmod); @@ -412,6 +413,7 @@ extern bool varchargt(char *arg1, char *arg2); extern bool varcharge(char *arg1, char *arg2); extern int32 varcharcmp(char *arg1, char *arg2); extern int32 varcharlen(char *arg); +extern int32 varcharoctetlen(char *arg); extern uint32 hashvarchar(struct varlena * key); /* varlena.c */ @@ -425,6 +427,7 @@ extern bool text_le(text *arg1, text *arg2); extern bool text_gt(text *arg1, text *arg2); extern bool text_ge(text *arg1, text *arg2); extern int32 textlen(text *arg); +extern int32 textoctetlen(text *arg); extern int32 textpos(text *arg1, text *arg2); extern text *text_substr(text *string, int32 m, int32 n); |