Skip to content
Snippets Groups Projects
Commit f2dfd561 authored by Jan Wieck's avatar Jan Wieck
Browse files

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

does compression itself the old way.

Jan
parent d0cb4e11
No related branches found
No related tags found
No related merge requests found
/* ----------
* 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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment