logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: PQescapeBytea & PQunescapeBytea: msg#00012

Subject: Re: PQescapeBytea & PQunescapeBytea
"Frost, Mr. Michael (contractor)" <frost@xxxxxxxxxxxxxxx> writes:
> [ PQescapeBytea & PQunescapeBytea are not inverses ]

They're not supposed to be.  PQescapeBytea creates something that can be
inserted into a SQL command as a string literal.  PQunescapeBytea
deconstructs something that has been returned as a SELECT result.
There are two different levels of backslashing involved.

This doesn't directly answer your original problem, but I think we'll
need to see more of your code to figure out what you were doing wrong.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org



<Prev in Thread] Current Thread [Next in Thread>