git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d0cb4e1)
Fixed lztextlen() bug in MULTIBYTE, still thinking that lztext
Wed, 5 Jul 2000 10:09:53 +0000 (10:09 +0000)
Wed, 5 Jul 2000 10:09:53 +0000 (10:09 +0000)
does compression itself the old way.

Jan


diff --git a/src/backend/utils/adt/lztext.c b/src/backend/utils/adt/lztext.c
index 412445e727f10153409ef676ca72d5386dc0f70d..694940a85703b558b90f6e1f607ddf02b249bc22 100644 (file)
--- 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);
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /