Bug Tracker item #3023888, was opened at 2010-07-01 18:19
Message generated for change (Tracker Item Submitted) made by sberthelot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3023888&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: daemon
Group: v3.9.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stéphane Berthelot (sberthelot)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wrong escaping of bytea (signature data) with postgresql 8.4

Initial Comment:
Escaping of insertion has been modified in 3.9.0 in two ways :
- using PQescapeByteaConn (instead of PQescapeBytea)
- adding E'' syntax in INSERT

But this encodes twice the data and then doesn't work on fresh PostgreSQL 8.4.2 
with or without standard_conforming_string in either UTF8 or SQL_ASCII database 
encoding.

Removing the E'' syntax (since the string is already correctly encoded now) 
makes signature insertion work again

In the git code, it may be necessary to add the if construct in this patch to 
check about postgresql version (but <=7.4 seem not supported anymore officially 
by the postgres team now ...)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=3023888&group_id=250683

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to