Re: Problems with a C function, pg_uname(), and String concatenation.

Поиск
Список
Период
Сортировка
От Glyn Astill
Тема Re: Problems with a C function, pg_uname(), and String concatenation.
Дата
Msg-id 954225.88278.qm@web25806.mail.ukl.yahoo.com
обсуждение исходный текст
Список 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

В списке pgsql-general по дате отправления:

Предыдущее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Problems with a C function, pg_uname(), and String concatenation.
Следующее
От: Rafael Martinez
Дата:
Сообщение: Re: Problems with a C function, pg_uname(), and String concatenation.