[PyGreSQL] Update to bytea escape patch, bugfix, enhancement

kavoos at issn.org kavoos at issn.org
Thu Sep 9 18:57:12 EDT 2004


>Thanks to Kavous Bojnourdi for pointing out that
>the pg client library
>has functions that do what I was trying to do -
>this means more code
>reuse (which is nice). Here is my version of his
>version of my patch,
>with two changes incorporated. Firstly the
>unnecessary output variable
>and the memory copying were removed from both
>functions. 

Yep, see it, but too late ... :)

>Secondly the
>pgbytea_unescape called Py_BuildValue with an "s",
>rather than an "s#"
>argument, leaving it unable to cope with any
>"premature" zero bytes,
>which it would have assumed to be terminators.

Good shot, i don't see it because i store special
binarie type without any zero byte :)

Thank you for taking time to correct my mistakes.

-- 
---------------------------(end of broadcast)--------------------------
                                                                       
                    CIEPS-ISSN E-MAIL SERVICES                         
            E-Mail checked by clamav 0.75  -- No virus found           
-----------------------------------------------------------------------


More information about the PyGreSQL mailing list