Get One item from an array..

From: "Cristian Prieto" <cristian(at)clickdiario(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Get One item from an array..
Date: 2005-11-07 20:44:46
Message-ID: 009701c5e3dc$17c51770$6500a8c0@gt.ClickDiario.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi! I have a little trouble with a SP written in C language, I have a
function which get an array as parameter, I know I could get the array using
ArrayType *elements = PG_GETARG_ARRAY_P(n) but what about if I only want to
get just the N element from the array? For example the 3 element of this
array, I haven't check a function named Datum *item = ARR_GETITEM(n), is
there any similar function or a simple way to get it?

Thank you a lot!!! I'm a really newbie in SPs written in C language.

Browse pgsql-general by date

  From Date Subject
Next Message Bob Powell 2005-11-07 21:09:18 odbc in postgresql and php
Previous Message Will Wright 2005-11-07 20:34:57 Re: Programmatic method to determine currently installed Windows PostrgreSQL version