Jira issue originally created by user @doctrinebot:
This issue is created automatically through a Github pull request on behalf of Seldaek:
http://stackoverflow.com/a/15112973 explains the why. It'd be great to offer support for this natively. I run an ->executeQuery('SET bytea_output=escape') every time now as a workaround but that's not very nice.
Issue was closed with resolution "Incomplete"