Re: [HACKERS] Enum binary access

2012-09-26 Thread Petr Chmelar
Hi Merlin, thanks, your code works perfectly. Cheers, Petr On 10.9.2012 16:33, Merlin Moncure wrote: On Mon, Sep 10, 2012 at 8:42 AM, Petr Chmelar wrote: Hi there, we tried to create the libpqtypes enum binary send but it doesn't work: // register types PGregisterType use

[HACKERS] Enum binary access

2012-09-10 Thread Petr Chmelar
Hi there, we tried to create the libpqtypes enum binary send but it doesn't work: // register types PGregisterType user_def[] = { {"seqtype", enum_put, enum_get} }; PQregisterTypes(connector->getConn(), PQT_USERDEFINED, user_def, 1, 0); // enum_put throws format error int enum_put (PGtypeArgs *