Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group