aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Wieck <JanWieck@Yahoo.com>2000-07-05 10:09:53 +0000
committerJan Wieck <JanWieck@Yahoo.com>2000-07-05 10:09:53 +0000
commitf2dfd5616c64ca7180964190fd600efe4bc69cfa (patch)
tree0928196586128190b27b9792c954d08b9f5a4d1a
parentd0cb4e11d552413afcdb11ff1009293c4a3ea776 (diff)
downloadpostgresql-f2dfd5616c64ca7180964190fd600efe4bc69cfa.tar.gz
postgresql-f2dfd5616c64ca7180964190fd600efe4bc69cfa.zip
Fixed lztextlen() bug in MULTIBYTE, still thinking that lztext
does compression itself the old way. Jan
-rw-r--r--src/backend/utils/adt/lztext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/lztext.c b/src/backend/utils/adt/lztext.c
index 412445e727f..694940a8570 100644
--- a/src/backend/utils/adt/lztext.c
+++ b/src/backend/utils/adt/lztext.c
@@ -1,7 +1,7 @@
/* ----------
* lztext.c -
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/lztext.c,v 1.8 2000/07/03 23:09:52 wieck Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/lztext.c,v 1.9 2000/07/05 10:09:53 wieck Exp $
*
* Text type with internal LZ compressed representation. Uses the
* standard PostgreSQL compression method.
@@ -118,7 +118,7 @@ lztextlen(lztext *lz)
#ifdef MULTIBYTE
len = 0;
s1 = s2 = (unsigned char *) lztextout(lz);
- l = PGLZ_RAW_SIZE(lz);
+ l = strlen(s2);
while (l > 0)
{
wl = pg_mblen(s1);