Re: Exception in thread "main" java.lang.OutOfMemoryError:

From: Kris Jurka <books(at)ejurka(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Roland Walter <rwa(at)mosaic-ag(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Exception in thread "main" java.lang.OutOfMemoryError:
Date: 2006-08-30 05:19:32
Message-ID: Pine.BSO.4.63.0608300010361.28706@leary2.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, 28 Aug 2006, Oliver Jowett wrote:

> Sounds like there is a bug in the driver's escape sequence parsing somewhere
> then. An invalid {...} escape shouldn't cause an OOME.
>

Indeed. The attached patch fixes this case for me. In general the
handling of escapes that aren't correct doesn't look great and should
probably be looked at it the future. For example the fact that it only
checks the first letter of some escapes and doesn't complain if the second
isn't found doesn't look good. Anyway as gborg is down, cvs is down, so
I'll commit this one later.

Kris Jurka

Attachment Content-Type Size
func_infinite_escape.patch text/plain 1.0 KB

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2006-08-30 05:27:50 Re: XA Resources
Previous Message Kris Jurka 2006-08-30 03:42:38 Re: JDK5 and TimeTest