1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-02 11:44:50 +03:00

Fixed lztextlen() bug in MULTIBYTE, still thinking that lztext

does compression itself the old way.

Jan
This commit is contained in:
Jan Wieck 2000-07-05 10:09:53 +00:00
parent d0cb4e11d5
commit f2dfd5616c

View File

@ -1,7 +1,7 @@
/* ---------- /* ----------
* lztext.c - * 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 * Text type with internal LZ compressed representation. Uses the
* standard PostgreSQL compression method. * standard PostgreSQL compression method.
@ -118,7 +118,7 @@ lztextlen(lztext *lz)
#ifdef MULTIBYTE #ifdef MULTIBYTE
len = 0; len = 0;
s1 = s2 = (unsigned char *) lztextout(lz); s1 = s2 = (unsigned char *) lztextout(lz);
l = PGLZ_RAW_SIZE(lz); l = strlen(s2);
while (l > 0) while (l > 0)
{ {
wl = pg_mblen(s1); wl = pg_mblen(s1);