pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rado Petrik <r.p@szm.sk>
To: pgsql-sql@postgresql.org
Subject: Retype
Date: 09 Jun 2003 11:24:24 +0200
Message-ID: <1055150663.1819.9.camel@caj> (raw)

Hi, 

I have query  " SELECT id_user FROM user WHERE (freg_u & 2 ) > 0 ".

freg_u is type smallint.
Query return this error.  

PostgreSQL query failed: ERROR: Unable to identify an operator '&' for
types 'smallint' and 'integer' You will have to retype this query using
an explicit cast in 

How I retype freg_u to interger ? 
-- 
Rado Petrik <r.p@szm.sk>





view thread (2+ messages)  latest in thread

Message-ID: <1055150663.1819.9.camel@caj>
Permalink:  ../1055150663.1819.9.camel@caj/
Also on:    postgresql.org/message-id/1055150663.1819.9.camel@caj

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: r.p@szm.sk
  Subject: Re: Retype
  In-Reply-To: <1055150663.1819.9.camel@caj>

* 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