Array.getArray ()

From: Dmitry Tkach <dmitry(at)openratings(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Array.getArray ()
Date: 2003-05-29 19:56:45
Message-ID: 3ED665FD.7080203@openratings.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc pgsql-patches

Hi, everybody!

I have run into a couple of problems having to do with parsing text
arrays in jdbc (Array.getArray ()):

- First of all, it skips backslashes, but does not really use them as
escape characters
(for example, if the array element has a string, looking like \"blah\",
it will (incorrectly) strip the double quotes;
- Secondly, it refuses to parse lines, that contains (properly escaped)
curly braces - for example {"{blah}", "{blah}"} or {\{blah\}, \{blah\}}...

The attached patch seems to fix those two problems (it is against
REL7_3_STABLE, but applies to the HEAD with no problems too).
Please let me know if you find anything wrong with it.

Thanks a lot!

Dima.

Attachment Content-Type Size
Array.patch text/plain 2.2 KB

Browse pgsql-bugs by date

  From Date Subject
Next Message Tomas Szepe 2003-05-30 07:24:42 Re: db growing out of proportion
Previous Message Stephan Szabo 2003-05-29 17:37:38 Re: db growing out of proportion

Browse pgsql-jdbc by date

  From Date Subject
Next Message Joseph Thomas 2003-05-29 21:30:33 Re: JDBC in Red hat 9
Previous Message Bjørn T Johansen 2003-05-29 17:30:17 Re: WARNING: ROLLBACK: no transaction in progress

Browse pgsql-patches by date

  From Date Subject
Next Message greg 2003-05-30 19:06:38 Re: XML ouput for psql
Previous Message Tebaldi Mirko 2003-05-29 15:53:54 PGSQL translation to italian - Proposal n° 2