pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Matt Chambers <chambers@imageworks.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Pg JDBC3 driver and savepoints
Date: Fri, 1 Feb 2008 15:37:35 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0802011535030.5384@leary.csoft.net> (raw)
In-Reply-To: <47A34E2D.2090202@imageworks.com>
References: <47A34E2D.2090202@imageworks.com>



On Fri, 1 Feb 2008, Matt Chambers wrote:

> Has anyone here used the Spring Framework and JDBC template and nested 
> transactions?  The documentation for Spring claims that if the JDBC driver 
> supports save points then it would use them in particular situations, for 
> example when you marked a method as a nested transaction.   I know postgres 
> supports save points and that I can manually save point, but the spring 
> framework is not detecting the driver supports save points. Is there some 
> savepoint interface that has to be implemented?
>

I would guess Spring would use DatabaseMetaData.supportsSavepoints() to 
determine if it can use savepoints.  Our implementation of that says, 
"return connection.haveMinimumServerVersion("8.0");", so as long as you've 
got a 8.0+ server it should work.  For more details you'd have to ask the 
Spring people.

Kris Jurka



view thread (2+ messages)

Message-ID: <Pine.BSO.4.64.0802011535030.5384@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0802011535030.5384@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0802011535030.5384@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, chambers@imageworks.com
  Subject: Re: Pg JDBC3 driver and savepoints
  In-Reply-To: <Pine.BSO.4.64.0802011535030.5384@leary.csoft.net>
  References: <47A34E2D.2090202@imageworks.com> <Pine.BSO.4.64.0802011535030.5384@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox