Re: getting non-atomic field with C API

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: HYip <hualinyip(at)earthlink(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: getting non-atomic field with C API
Date: 2001-06-11 14:28:28
Message-ID: Pine.BSO.4.10.10106111026510.17529-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You have to actually parse it down. You'll get {1,2,3,4} (as a char*) when
you do a select, then its your responsibility to break it up to individual
values.

On Mon, 4 Jun 2001, HYip wrote:

> I have a field that is an array of int. I want to get it to the array
> in a C program. Anyone has an example how to do it in C.
>
> Thanks
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-06-11 14:33:30 Re: Include file problem
Previous Message Trond Eivind =?iso-8859-1?q?Glomsr=F8d?= 2001-06-11 14:28:04 Re: Include file problem