pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Clift <aa2@bigpond.net.au>
To: PostgreSQL SQL Mailing list <pgsql-sql@postgresql.org>
Subject: Help needed -> ERROR:  record arow has no field description
Date: Thu, 01 Mar 2001 12:59:38 +1100
Message-ID: <3A9DAD09.E1FBBA50@bigpond.net.au> (raw)

Hi all,

I'm getting this error, which to me makes no sense.  Running PostgreSQL
7.0.3 on Mandrake 7.2 (compiled from source, not the rpms).

The code is in a pl/pgsql function I am writing and I can't see why it's
complaining.

This is the appropriate part of the code :

<general CREATE type header>

        arow            record;

	<other declarations>

	BEGIN

	<other code here, which works>

	FOR arow IN select transaction_payments.cashback from
transaction_payments, payment_types where
         transaction_payments.payment_type = payment_types.idnum LOOP
            textbuf := text(arow.cashback);
            textbuf := textcat(textbuf, ''  '');
            insert into receipts (receipt_num, data) values (trans_num,
textbuf);
        END LOOP;

<general END type syntax>



view thread (3+ messages)  latest in thread

Message-ID: <3A9DAD09.E1FBBA50@bigpond.net.au>
Permalink:  ../3A9DAD09.E1FBBA50@bigpond.net.au/
Also on:    postgresql.org/message-id/3A9DAD09.E1FBBA50@bigpond.net.au

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: aa2@bigpond.net.au
  Subject: Re: Help needed -> ERROR:  record arow has no field description
  In-Reply-To: <3A9DAD09.E1FBBA50@bigpond.net.au>
  References: <3A9DAD09.E1FBBA50@bigpond.net.au>

* 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