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

Removing blob using pure JDBC (PG7.1)

From: Jean-Francois Burdet <Jean-Francois(dot)Burdet(at)adm(dot)unige(dot)ch>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Removing blob using pure JDBC (PG7.1)
Date: 2001-01-30 11:14:18
Message-ID: 3A76A20A.D09733D7@adm.unige.ch (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi,

The documentation from jdbc-lo.htm shows how to create and read a blob
object using pure JDBC calls (that is, without using the
org.postgresql.largeobject.* package).

Since the documentation doesn't show it, how can I remove a blob ? Does
a setNull() to the oid pointing to the blob do the job ? (Will the
driver intercept this and make an "unlink" ?)

Or should I stick with 
LargeObjectManager lobj =
((org.postgresql.Connection)dbCon).getLargeObjectAPI();
lobj.unlink(oid);
?

Thanks ...

pgsql-jdbc by date

Next:From: Peter T MountDate: 2001-01-30 13:43:04
Subject: Re: Re: [PATCHES] Re: [INTERFACES] Patch for JDBC timestamp problems
Previous:From: Michael StephensonDate: 2001-01-30 09:39:13
Subject: Re: [PATCHES] Re: [INTERFACES] Patch for JDBC timestamp problems

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