pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Niklas Johansson <spot@tele2.se>
Cc: Risto Tamme <risto@ektaco.ee>
Cc: pgsql-sql@postgresql.org
Subject: Re: Table constraints and INSERT
Date: Wed, 17 May 2006 10:12:52 -0400
Message-ID: <19595.1147875172@sss.pgh.pa.us> (raw)
In-Reply-To: <4FECA253-3236-4619-B317-765B4CBE9DDD@tele2.se>
References: <E763584E741976409B9F835B475B00FC1A5353@pe2850.EKTACO.local>
	<4FECA253-3236-4619-B317-765B4CBE9DDD@tele2.se>

Niklas Johansson <spot@tele2.se> writes:
> You must cast the integer column to a float or numeric, try:

Since the CHECK is expecting an exact result, better use numeric.

			regards, tom lane



view thread (3+ messages)

Message-ID: <19595.1147875172@sss.pgh.pa.us>
Permalink:  ../19595.1147875172@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19595.1147875172@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, spot@tele2.se, risto@ektaco.ee
  Subject: Re: Table constraints and INSERT
  In-Reply-To: <19595.1147875172@sss.pgh.pa.us>

* 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