[fpc-devel] PostgreSQL 8.4.5 Ubuntu 10.10 x64 and bytea=blobs up to 1 gigabyte

Michael Van Canneyt michael at freepascal.org
Sat Oct 23 16:11:51 CEST 2010



On Sat, 23 Oct 2010, Martin Schreiber wrote:

> On Saturday, 23. October 2010 13.11:01 Michael Van Canneyt wrote:
>> On Fri, 22 Oct 2010, Andrew Brunner wrote:
>>> Looking to get some resolution to an immediate problem with postgres
>>> component I have...
>>>
>>> Field definitions for blob can be mapped to bytea and enable support
>>> for blob data as I am pretty sure byte for byte output/input would
>>> suffice.  Some debugging may be needed to make sure we don't need
>>> escape/unescape on string literals.  I'm hoping for a quick fix.
>>
>> I committed a fix in 16203, please test.
>>
> Please don't forget to mark bytea parameters as binary or use hex notation,
> otherwise the data probably will be cut by the first zero or even not
> accepted because of encoding errors.

Thanks for the tip. 
Done in rev. 16207, had a sneak peak at your implementation for it.

(I don't use postgres myself, so any testing will be welcome)

Michael.



More information about the fpc-devel mailing list