From bcc15f15e10630b2624a1610d61bedb88e4c4901 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 2 Sep 1998 23:37:13 +0000 Subject: > David Hartwig wrote: > > Please apply this HAVING regression patch. > > My bad. It is caused by a known bug having to do with GROUP BY. It ain't$ > > nothing to do with HAVING. For some reason the bug went away for a while, $ > > script. It must have, because that is how I created the expected file. :( > > > > A patch to the regression will be forthcoming. > --- src/backend/utils/adt/varlena.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/backend') diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index 4410aa1c9aa..0de5ec07b9e 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.42 1998/09/01 04:32:54 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.43 1998/09/02 23:37:08 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -610,9 +610,11 @@ byteaGetByte(text *v, int32 n) elog(ERROR, "byteaGetByte: index (=%d) out of range [0..%d]", n, len - 1); } - +#ifdef USE_LOCALE byte = (unsigned char) (v->vl_dat[n]); - +#else + byte = v->vl_dat[n]; +#endif return (int32) byte; } -- cgit v1.2.3