Skip site navigation (1) Skip section navigation (2)

Arrays in V1 calls

From: mila boldareva <pierro(at)dds(dot)nl>
To: pgsql-novice(at)postgresql(dot)org
Subject: Arrays in V1 calls
Date: 2002-02-27 19:36:28
Message-ID: (view raw or whole thread)
Lists: pgsql-novice
I try to pass a column from a table as a parameter to a C function.

The column is an array of float8 with V1 method.
I can't find the method to pick up the arguments-arrays,

the whole thing looks like this:

     ????? how to get  the parameter as a pointer
     and reach 1st, second, etc. element of array?

     float8 *a = PG_GETARG_POINTER(0) ;
     float8 c = *(a+1) ;
     ^^^^^^^^^^^^^^^^^ doesn't give the value of a[2],
                       but an incredible number

Please help me out, or recommend where to find the info (at developers
guide I found nothing like that)

 mila                          mailto:pierro(at)dds(dot)nl


pgsql-novice by date

Next:From: Tom LaneDate: 2002-02-27 23:35:28
Subject: Re: Arrays in V1 calls
Previous:From: Josh BerkusDate: 2002-02-27 17:15:17
Subject: Re: Unicode and PGAccess

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group