Skip to content

Commit f2dfd56

Browse files
Jan WieckJan Wieck
authored andcommitted
Fixed lztextlen() bug in MULTIBYTE, still thinking that lztext
does compression itself the old way. Jan
1 parent d0cb4e1 commit f2dfd56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/lztext.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* ----------
22
* lztext.c -
33
*
4-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/lztext.c,v 1.8 2000/07/03 23:09:52 wieck Exp $
4+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/lztext.c,v 1.9 2000/07/05 10:09:53 wieck Exp $
55
*
66
* Text type with internal LZ compressed representation. Uses the
77
* standard PostgreSQL compression method.
@@ -118,7 +118,7 @@ lztextlen(lztext *lz)
118118
#ifdef MULTIBYTE
119119
len = 0;
120120
s1 = s2 = (unsigned char *) lztextout(lz);
121-
l = PGLZ_RAW_SIZE(lz);
121+
l = strlen(s2);
122122
while (l > 0)
123123
{
124124
wl = pg_mblen(s1);

0 commit comments

Comments
 (0)