pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Bert <biertie@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Can't get upsert working.
Date: Tue, 04 Dec 2012 08:36:53 +0000
Message-ID: <50BDB625.2070800@archonet.com> (raw)
In-Reply-To: <CAFCtE1=xUHzWQcpBQ7tSxFfQwJO-Pay2jFyfWHZ5dPDuAPhnEg@mail.gmail.com>
References: <CAFCtE1=xUHzWQcpBQ7tSxFfQwJO-Pay2jFyfWHZ5dPDuAPhnEg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (3+ messages)

Message-ID: <50BDB625.2070800@archonet.com>
Permalink:  ../50BDB625.2070800@archonet.com/
Also on:    postgresql.org/message-id/50BDB625.2070800@archonet.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: dev@archonet.com, biertie@gmail.com
  Subject: Re: Can't get upsert working.
  In-Reply-To: <50BDB625.2070800@archonet.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