Re: Question about how to handle numeric (decimal) data types while using libpq

2021-07-06 Thread Sudheer H R
. > On 06-Jul-2021, at 5:18 PM, Dmitry Igrishin wrote: > > > > On Tue, Jul 6, 2021, 14:04 Sudheer H R <mailto:sudheer...@tekenlight.com>> wrote: > Hello, > > I am trying to use libpq for interfacing with PostgreSQL from a C/C++ based > application. &g

Question about how to handle numeric (decimal) data types while using libpq

2021-07-06 Thread Sudheer H R
Hello, I am trying to use libpq for interfacing with PostgreSQL from a C/C++ based application. I have tried to use binary format of data for both sending and receiving data to and from server (resultFormat = 1). As I understand most binary types, int, float etc… are encoded in bing-endian