summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/like.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-09-02 06:22:20 +0000
committerBruce Momjian <bruce@momjian.us>2002-09-02 06:22:20 +0000
commit595a5a78e0fa7174b95949f04f810501c0261c5a (patch)
tree0da570e06d81dc5ca484a66053c0eb38675602dd /src/backend/utils/adt/like.c
parent81efc826081b7889753c449cf29dd72f75690047 (diff)
downloadpostgresql-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.c6
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;