Hello!
Shouldn't unescape_bytea(escape_bytea()) be idempotent?
>>> from pg import escape_bytea, unescape_bytea
>>> print escape_bytea("'")
''
>>> print unescape_bytea("''")
''
I expected the result to be a single apostrophe.
PyGreSQL 5.0.4. Python 2.7 and 3.4+.
Oleg.
--
Oleg Broytman http://phdru.name/ [email protected]
Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql