diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-09-02 06:22:20 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-09-02 06:22:20 +0000 |
commit | 595a5a78e0fa7174b95949f04f810501c0261c5a (patch) | |
tree | 0da570e06d81dc5ca484a66053c0eb38675602dd /src/backend/utils/adt/like.c | |
parent | 81efc826081b7889753c449cf29dd72f75690047 (diff) | |
download | postgresql-595a5a78e0fa7174b95949f04f810501c0261c5a.tar.gz |
> Okay. When you get back to the original issue, the gold is hidden in
> src/backend/optimizer/path/indxpath.c; see the "special indexable
> operators" stuff near the bottom of that file. (It's a bit of a crock
> that this code is hardwired there, and not somehow accessed through a
> system catalog, but it's what we've got at the moment.)
The attached patch re-enables a bytea right hand argument (as compared
to a text right hand argument), and enables index usage, for bytea LIKE
Joe Conway
Diffstat (limited to 'src/backend/utils/adt/like.c')
-rw-r--r-- | src/backend/utils/adt/like.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/like.c b/src/backend/utils/adt/like.c index 3e67e947a9..fab47e37fa 100644 --- a/src/backend/utils/adt/like.c +++ b/src/backend/utils/adt/like.c @@ -11,7 +11,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/like.c,v 1.51 2002/08/29 07:22:26 ishii Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/like.c,v 1.52 2002/09/02 06:22:19 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -242,7 +242,7 @@ Datum bytealike(PG_FUNCTION_ARGS) { bytea *str = PG_GETARG_BYTEA_P(0); - text *pat = PG_GETARG_TEXT_P(1); + bytea *pat = PG_GETARG_BYTEA_P(1); bool result; unsigned char *s, *p; @@ -263,7 +263,7 @@ Datum byteanlike(PG_FUNCTION_ARGS) { bytea *str = PG_GETARG_BYTEA_P(0); - text *pat = PG_GETARG_TEXT_P(1); + bytea *pat = PG_GETARG_BYTEA_P(1); bool result; unsigned char *s, *p; |