Re: [GENERAL] CREATE OPERATOR error

From: Mike Mascari <mascarim(at)yahoo(dot)com>
To: Brandon Ibach <bibach(at)infomansol(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] CREATE OPERATOR error
Date: 1999-11-17 03:00:20
Message-ID: 19991117030020.29682.rocketmail@web2103.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- Brandon Ibach <bibach(at)infomansol(dot)com> wrote:
> Quoting ^chewie <chewie(at)wookimus(dot)net>:
> > On Tue, 16 Nov 1999, Brandon Ibach wrote:
> >
> > BI> Can anybody explain what might be happening here?
> > BI>
> > BI> abc=> create operator =* ( leftarg = varchar, rightarg = varchar,
> > BI> abc-> procedure = vciceq, commutator = =* );
> > BI> ERROR: parser: parse error at or near "varchar"
> > BI>
> > BI> The function "vciceq" already exists, and works. I've tried a
> > BI> number of variations on the above with different spacing, with no
> > BI> success. Is there some syntax peculiarity I'm missing? This is
> > BI> on PostgreSQL 6.5.2 on a Linux x86 system (RedHat 5.1, kernel
> > BI> 2.0.34).
> >
> > Isn't the operator '=*' a reserved operator for a right outer join?
> >
> That may be, but I just tried it with an operator name of =: and
> got the same result, so that doesn't appear to be the problem here. :(
>
> -Brandon :)

How about:

create operator =* (
leftarg = text,
rightarg = text,
procedure = vciceq,
commutator = =* );

with vciceq(text, text) being defined.

Mike Mascari
(mascarim(at)yahoo(dot)com)

=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

Browse pgsql-general by date

  From Date Subject
Next Message The Hermit Hacker 1999-11-17 06:22:25 Projects Database Online ...
Previous Message Mark Kirkwood 1999-11-16 23:38:46 a comparison of 4 databases