From: | Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk> |
---|---|
To: | Rafael Martinez <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Problems with a C function, pg_uname(), and String concatenation. |
Date: | 2008-07-01 11:38:18 |
Message-ID: | 954225.88278.qm@web25806.mail.ukl.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> Pavel Stehule wrote:
> > hello
> > try
> >
> > memcpy(VARDATA(result),uname_pointer.release,strlen(uname_pointer.release));
> > SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ);
> >
> [.........]
>
> This a 8.2.x system. SET_VARSIZE is not available.
>
> Thanks for your time.
> regards
> --
> Rafael Martinez,
Then replace
SET_VARSIZE(result, strlen(uname_pointer.release) + VARHDRSZ);
with
VARATT_SIZEP( result, ) = strlen(uname_pointer.release) + VARHDRSZ;
__________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html
From | Date | Subject | |
---|---|---|---|
Next Message | Rafael Martinez | 2008-07-01 11:43:49 | Re: Problems with a C function, pg_uname(), and String concatenation. |
Previous Message | Pavel Stehule | 2008-07-01 11:06:40 | Re: Problems with a C function, pg_uname(), and String concatenation. |