Re: How to use JDBC to update LargeObject

From: "Satish Burnwal (sburnwal)" <sburnwal(at)cisco(dot)com>
To: "Kris Jurka" <books(at)ejurka(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: How to use JDBC to update LargeObject
Date: 2010-01-22 04:53:32
Message-ID: 3A8C969225424C4D8E6BEE65ED8552DA89D799@XMB-BGL-41C.cisco.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I am using Postgres 8.1 where truncate feature is not supported. Can you
pls confirm this ? This is src code in 8.3-605 AbstractJdbc2BlobClob
class and I do get the exception:

public synchronized void truncate(long len) throws SQLException
{
checkFreed();
if (!conn.haveMinimumServerVersion("8.3"))
throw new PSQLException(GT.tr("Truncation of large objects
is only implemented in 8.3 and later servers."),
PSQLState.NOT_IMPLEMENTED);

assertPosition(len);
lo.truncate((int)len);
}

-Satish

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2010-01-23 00:04:01 Re: How to use JDBC to update LargeObject
Previous Message Heikki Linnakangas 2010-01-21 23:06:07 Re: XA DataSource ServerName not working