Re: Can't get upsert working.

From: Richard Huxton <dev(at)archonet(dot)com>
To: Bert <biertie(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Can't get upsert working.
Date: 2012-12-04 08:36:53
Message-ID: 50BDB625.2070800@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 30/11/12 17:00, Bert wrote:
> SELECT (ET.row1,
> ET.row2,
> ET.row3)

> But I always get this error message:
> ERROR: column "row1" is of type integer but expression is of type record
> LINE 67: SELECT (ET.ROW1,
>
> Does anyone has an idea?

You've bracketed the SELECT colums above, which means it's trying to
treat them as a single record-column with three fields. Hence the error
message.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Emi Lu 2012-12-12 17:13:20 Load UTF8@psql into latin1@mysql through JDBC
Previous Message Jasen Betts 2012-12-02 09:56:19 Re: Can't get upsert working.