Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 > 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux