From: | Cody Pisto <cody(at)hpcs(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | libpq, binary cursors, & arrays |
Date: | 2004-05-03 07:38:50 |
Message-ID: | 4095F70A.9040402@hpcs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi all,
I'm putting together a small package of macros and functions
to help deal with binary cursor results from libpq, but I've run into a
bit of a stumbling block with regard to array results,
for example:
ArrayType *arr;
uint64_t *lin;
...
res = PQexecParams(conn, "select '{1,2,3}'::bigint[]", 1, NULL,
paramValues, NULL, NULL, 1);
...
arr = (ArrayType *)PQgetvalue(res, 0, 1);
lin = (uint64_t *)ARR_DATA_PTR(lin);
printf("%lld\n", lin[0]);
does not produce the expected results
Any pointers would be much appreciated,
Thanks in advance,
---
Cody Pisto <cody(at)hpcs(dot)com>
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2004-05-03 07:41:07 | Re: Fixed directory locations in installs |
Previous Message | Peter Eisentraut | 2004-05-03 07:30:28 | Re: Fixed directory locations in installs |