Re: Bug in AbstractJdbc2BlobClob

From: Kris Jurka <books(at)ejurka(dot)com>
To: SJ Kissane <skissane(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Bug in AbstractJdbc2BlobClob
Date: 2010-01-18 07:49:19
Message-ID: alpine.BSO.2.00.1001180248010.30607@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Fri, 15 Jan 2010, SJ Kissane wrote:

> I'm using JDBC4 Postgresql Driver, Version 8.4-701.
>
> Using pgJDBC, if you call clob.truncate(0) to truncate a clob to
> zero-length, you get a "org.postgresql.util.PSQLException: LOB positioning
> offsets start at 1".
> This is spurious -- the argument to truncate is not a position offset, its a
> length. So although position offsets must start at 1, lengths can start at
> 0.
> I see there is a call to assertPosition(len) -- that needs to go, maybe

You are correct. Fixed in CVS for 8.3, 8.4, and HEAD.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2010-01-18 07:52:30 Re: Mapping Java BigDecimal
Previous Message Jakub Bednář 2010-01-18 07:19:25 Mapping Java BigDecimal