summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/varlena.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-09-02 23:37:13 +0000
committerBruce Momjian <bruce@momjian.us>1998-09-02 23:37:13 +0000
commitbcc15f15e10630b2624a1610d61bedb88e4c4901 (patch)
treea8eaf6f1acde9a00b459ebade1d4391ef5b1458d /src/backend/utils/adt/varlena.c
parent58fdae0ddfb802615f20548c5fe863661028ed31 (diff)
> 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. >
Diffstat (limited to 'src/backend/utils/adt/varlena.c')
-rw-r--r--src/backend/utils/adt/varlena.c8
1 files changed, 5 insertions, 3 deletions
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;
}