pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rhaoni Chiu Pereira <rhaoni@sistemica.info>
To: Lista PostgreSQL <pgsql-admin@postgresql.org>
Subject: Explicit Cast
Date: Wed, 20 Aug 2003 09:24:28 -0300
Message-ID: <1061382268.3f43687cc3565@sistemica.info> (raw)

Hi List, 

     As I already said .. I'm porting an Oracle DB to PostgreSQL and I must 
rewrite most of the functions . So I have a problem to do something like this:

... atual_fatura in(''+'',''-'') ...

It gives me the following error:

 Unable to identify an operator '-' for types 'numeric' and 'character varying'
 You will have to retype this query using an explicit castenciosamente,

atual_fatura is a varchar field.

I read howto create an explicit cast but I didn't understand what I must do in 
this case. 
    
Can anybody help me ?


Rhaoni Chiu Pereira
Sistêmica Computadores

Visite-nos na Web: http://sistemica.info
Fone/Fax : +55 51 3328 1122








view thread (3+ messages)  latest in thread

Message-ID: <1061382268.3f43687cc3565@sistemica.info>
Permalink:  ../1061382268.3f43687cc3565@sistemica.info/
Also on:    postgresql.org/message-id/1061382268.3f43687cc3565@sistemica.info

 · 

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-admin@postgresql.org
  Cc: rhaoni@sistemica.info
  Subject: Re: Explicit Cast
  In-Reply-To: <1061382268.3f43687cc3565@sistemica.info>
  References: <1061382268.3f43687cc3565@sistemica.info>

* 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