pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Griffin <cgriffin@websales.com>
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] Logical and for int4?
Date: Thu, 02 Dec 1999 19:16:58 -0800
Message-ID: <B46C7629.11D9%cgriffin@websales.com> (raw)
In-Reply-To: <B46BF5DD.11C6%cgriffin@websales.com>


 I wrote a c routine to 'and' to integers. I defined a function the defined
the '&' operator. So now I can do the following:

  where (int_field & int_mask) <> 0 ....

 I turned out to be much easier that I expected. If anyone is interested in
this or possibly other function/operators let me know.




view thread (2+ messages)

Message-ID: <B46C7629.11D9%cgriffin@websales.com>
Permalink:  ../B46C7629.11D9%25cgriffin@websales.com/
Also on:    postgresql.org/message-id/B46C7629.11D9%cgriffin@websales.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: cgriffin@websales.com
  Subject: Re: [SQL] Logical and for int4?
  In-Reply-To: <B46C7629.11D9%cgriffin@websales.com>
  References: <B46BF5DD.11C6%cgriffin@websales.com> <B46C7629.11D9%cgriffin@websales.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