Re: Escaping of special characters in ARRAYs is broken

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gerhard Häring <haering_linux(at)gmx(dot)de>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Escaping of special characters in ARRAYs is broken
Date: 2002-04-21 15:12:42
Message-ID: 5818.1019401962@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Gerhard =?iso-8859-15?Q?H=E4ring?= <haering_linux(at)gmx(dot)de> writes:
> You can see the inconsistency yourself when you try to insert a special
> character like \005 into a varchar array. IMO This should work with inserting
> '{"\\005"}', but this just inserts the three letters 005.

This is not a bug; you didn't use enough backslashes. See the example
at the bottom of this page:
http://candle.pha.pa.us/main/writings/pgsql/sgml/arrays.html

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Loftis 2002-04-21 17:56:40 Re: PostgreSql Installation
Previous Message Gerhard Häring 2002-04-21 09:38:15 Escaping of special characters in ARRAYs is broken