pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Ken Winter <ken@sunward.org>
Cc: 'Bricklen Anderson' <banderson@presinet.com>
Cc: 'PostgreSQL pg-sql list' <pgsql-sql@postgresql.org>
Subject: Re: Arrays in PL/pgSQL routines?
Date: Thu, 29 Dec 2005 11:46:39 -0700
Message-ID: <20051229184639.GA53686@winnie.fuhr.org> (raw)
In-Reply-To: <005a01c60ca4$f79e3bb0$6603a8c0@kenxp>
References: <43B42273.9030602@presinet.com>
	<005a01c60ca4$f79e3bb0$6603a8c0@kenxp>

On Thu, Dec 29, 2005 at 01:23:28PM -0500, Ken Winter wrote:
> That works.  (Odd that the initialization seems to be necessary to make it
> work.)  Thanks!  Yes, I'm using version 7.4.

7.4.what?  Absence of initialization shouldn't cause a syntax error;
at least it doesn't in 7.4.10.  However, in 7.4 you do have to
initialize an array before assigning to its elements, else the array
will remain NULL (initialization isn't necessary in the latest 8.x
releases).

-- 
Michael Fuhr



view thread (6+ messages)

Message-ID: <20051229184639.GA53686@winnie.fuhr.org>
Permalink:  ../20051229184639.GA53686@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20051229184639.GA53686@winnie.fuhr.org

 · 

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: mike@fuhr.org, ken@sunward.org, banderson@presinet.com
  Subject: Re: Arrays in PL/pgSQL routines?
  In-Reply-To: <20051229184639.GA53686@winnie.fuhr.org>

* 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