Re: [GENERAL] encode, lower and 0x8a

2007-02-20 Thread Bruce Momjian
I have updated the encode() documentation to not mention "ASCII", and to be more specific about what 'escape' does. Backpatched to 8.2.X. --- Michael Fuhr wrote: > On Thu, Jan 25, 2007 at 02:28:38PM -0500, Michael Artz wrot

Re: [GENERAL] encode, lower and 0x8a

2007-01-29 Thread Michael Fuhr
On Mon, Jan 29, 2007 at 12:52:33PM -0500, Michael Artz wrote: > On 1/27/07, Michael Fuhr <[EMAIL PROTECTED]> wrote: > >SELECT decode(lower(textin(byteaout(bytes))), 'escape') FROM mytable; > > That seems to work correctly, however I missed the functions textin' > and 'byteaout' in the docs ... are

Re: [GENERAL] encode, lower and 0x8a

2007-01-29 Thread Michael Artz
On 1/27/07, Michael Fuhr <[EMAIL PROTECTED]> wrote: On Thu, Jan 25, 2007 at 02:28:38PM -0500, Michael Artz wrote: > Perhaps my understanding of the 'encode' function is incorrect, but I > was under the impression that I could do something like: > > SELECT lower(encode(bytes, 'escape')) FROM mytab

Re: [GENERAL] encode, lower and 0x8a

2007-01-27 Thread Michael Fuhr
On Thu, Jan 25, 2007 at 02:28:38PM -0500, Michael Artz wrote: > Perhaps my understanding of the 'encode' function is incorrect, but I > was under the impression that I could do something like: > > SELECT lower(encode(bytes, 'escape')) FROM mytable; > > as it sounded like (from the manual) that 'e

[GENERAL] encode, lower and 0x8a

2007-01-25 Thread Michael Artz
Perhaps my understanding of the 'encode' function is incorrect, but I was under the impression that I could do something like: SELECT lower(encode(bytes, 'escape')) FROM mytable; as it sounded like (from the manual) that 'encode' would return valid ASCII, with all the non-ascii bytes hex escaped