Re: Case

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Cwhisperer <Cwhisperer(at)vo(dot)lu>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Case
Date: 2001-05-14 20:39:21
Message-ID: Pine.LNX.4.30.0105142237490.757-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Cwhisperer writes:

> what's wrong when you receive this message from an select statement
> : CASE types "date" and "text" not matched

You probably did something like

CASE WHEN something THEN date_value ELSE text_value

The data types in the result branches of a case expression need to match.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

  • Case at 2001-05-14 15:21:07 from Cwhisperer

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Swan 2001-05-14 21:27:34 Re: Auto incrementing an integer
Previous Message Radhika Vutukuru 2001-05-14 19:41:28 working with stored procedures