View Single Post

   
  #2 (permalink)  
Old 04-19-2008, 06:24 AM
Alvaro Herrera
 
Posts: n/a
Default Re: [PATCH] automatic integer conversion

xeb@mail.ru wrote:
> Hello!
> Here is patch which makes libpq more confortable when working with binary integers.
> Automatic conversion intialized by PQsetconvertint(conn,1), so old
> applications continues to work proper.


This seems to depend on <byteswap.h> which doesn't look like a portable
interface.

Please note that I'm not saying that fixing that issue means the patch
is acceptable. Personally I'm not sure that this is a worthy goal you
are pursuing here. Wouldn't it be a good idea to propose the feature
first and write the code later?

--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J
"Aprender sin pensar es inútil; pensar sin aprender, peligroso" (Confucio)

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Reply With Quote