Re: [NOVICE] LibPQ, C, BLOB or BYTEA - Mailing list pgsql-novice

From Ruslan R. Laishev
Subject Re: [NOVICE] LibPQ, C, BLOB or BYTEA
Date
Msg-id 4869981508842990@web47o.yandex.ru
Whole thread Raw
In response to Re: [NOVICE] LibPQ, C, BLOB or BYTEA  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-novice
Thanks, will look later ...
At the time I looking for a way to solve the problem w/o introducing a yet another API.


24.10.2017, 00:08, "Merlin Moncure" <mmoncure@gmail.com>:

On Mon, Oct 23, 2017 at 9:18 AM, Ruslan R. Laishev <zator@yandex.ru> wrote:

 The question was "How To?". :-)
 I looking for something like follows:
 ...
 char __data_bytea[128];


 RAND_bytes(__data_bytea, sizeof(__data_byte));
 ...
 argv[0] = __data_bytea;
 argl[0] = sizeof(__data_bytea);

 ...
 PQexecPrepared ( ... argv, argl , ...);


check out libpqtypes -- it does exactly what you want.

merlin



-- 
С уважением,
Ruslan R. Laishev
OpenVMS bigot, natural born system/network progger, C contractor.
+79013163222
+79910009922

pgsql-novice by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: [NOVICE] New Version Errors
Next
From: Ruslan R. Laishev
Date:
Subject: [NOVICE] BYTEA Arrays Input and Output C example