Re: How to use JDBC to update LargeObject - Mailing list pgsql-jdbc

From Satish Burnwal (sburnwal)
Subject Re: How to use JDBC to update LargeObject
Date
Msg-id 3A8C969225424C4D8E6BEE65ED8552DA89D799@XMB-BGL-41C.cisco.com
Whole thread Raw
In response to Re: How to use JDBC to update LargeObject  (Kris Jurka <books@ejurka.com>)
Responses Re: How to use JDBC to update LargeObject  (Kris Jurka <books@ejurka.com>)
List 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


pgsql-jdbc by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: XA DataSource ServerName not working
Next
From: Kris Jurka
Date:
Subject: Re: How to use JDBC to update LargeObject