Re: htonl necesssary for PQexecParams input?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Kevin Jenkins <gameprogrammer(at)rakkar(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: htonl necesssary for PQexecParams input?
Date: 2006-06-22 17:34:43
Message-ID: 1454.1150997683@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Fuhr <mike(at)fuhr(dot)org> writes:
> ... the length needs to be in host byte order.

Right. The only place where a libpq client would be dealing with
network-byte-order data is within binary-format values for data fields
(in SELECT results) or binary-format parameters (when transmitting to
the database). Metadata like field lengths is just in the local native
representation.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Todd A. Cook 2006-06-22 17:39:08 Re: Out of memory error in 8.1.0 Win32
Previous Message Dylan Hansen 2006-06-22 17:18:50 auto-vacuum & Negative "anl" Values