pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gianvito Pio <pio.gianvito@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Check type compatibility
Date: Sat, 06 Mar 2010 12:04:08 +0100
Message-ID: <4B9236A8.3070603@gmail.com> (raw)

Hi all,
is there a way to check if two attribute are type compatible (for 
example integer and serial, integer and integer, character varying and 
text, etc..)?

Example:
IF (compatible (table1.att1, table2.att2)) THEN
         ...
ELSE
         ...
END IF;

Thanks




view thread (3+ messages)  latest in thread

Message-ID: <4B9236A8.3070603@gmail.com>
Permalink:  ../4B9236A8.3070603@gmail.com/
Also on:    postgresql.org/message-id/4B9236A8.3070603@gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pio.gianvito@gmail.com
  Subject: Re: Check type compatibility
  In-Reply-To: <4B9236A8.3070603@gmail.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