Search Postgresql Archives

Re: Returning Vector of Pairs with a PostgreSQL C Extension Function

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

 



It looks like changing the

elements[0] = CStringGetDatum(localT1.c_str()); 
elements[1] = CStringGetDatum(localT2.c_str()); 

to:

elements[0] = PointerGetDatum(cstring_to_text(localT1.c_str()));
elements[1] = PointerGetDatum(cstring_to_text(localT2.c_str()));

Solved the problem. If anyone thinks that there is a better way please tell
me.

Best regards,
Tal



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.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