pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Kramer <ricardo_y_dorita@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: trouble creating operators
Date: Wed, 29 Sep 1999 08:38:57 CDT
Message-ID: <19990929133858.45001.qmail@hotmail.com> (raw)

#what's going on here?

CREATE OPERATOR & (
        leftarg = int4,
        rightarg = int4,
        procedure = int4bitwise_and,
        comutator = &
);
CREATE

#so far, so good...

CREATE OPERATOR | (
        leftarg = int4,
        rightarg = int4,
        procedure = int4bitwise_or,
        comutator = |
);
ERROR:  parser: parse error at or near "|"

#doesn't like pipes?

CREATE OPERATOR ~ (
        rightarg = int4,
        procedure = int4bitwise_not
);
ERROR:  OperatorDef: operator "~" already defined

#on int4?could have fooled me!

DROP OPERATOR ~(none,int4);
ERROR:  RemoveOperator: left unary operator '~' taking 'int4' does not exist

#...just as i thought!

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com



Message-ID: <19990929133858.45001.qmail@hotmail.com>
Permalink:  ../19990929133858.45001.qmail@hotmail.com/
Also on:    postgresql.org/message-id/19990929133858.45001.qmail@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: ricardo_y_dorita@hotmail.com
  Subject: Re: trouble creating operators
  In-Reply-To: <19990929133858.45001.qmail@hotmail.com>
  References: <19990929133858.45001.qmail@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox