From: | Dmitry Tkach <dmitry(at)openratings(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | [Fwd: Array.getArray ()] |
Date: | 2003-07-09 15:13:08 |
Message-ID: | 3F0C3104.8000903@openratings.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
I sent this patch about a month ago, but have never received any reply...
Did it get lost?
Thanks!
Dima
-------- Original Message --------
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 |
From | Date | Subject | |
---|---|---|---|
Next Message | Barry Lind | 2003-07-09 15:48:54 | Re: Postgres JDBC |
Previous Message | Paul Thomas | 2003-07-09 10:59:04 | Re: Postgresql JDBC question |