pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
setAutoCommit(false)
5+ messages / 5 participants
[nested] [flat]

* setAutoCommit(false)
@ 2004-05-12 09:45  Andy Jefferson <andy_jefferson@yahoo.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Andy Jefferson @ 2004-05-12 09:45 UTC (permalink / raw)
  To: pgsql-jdbc

Hi,

I'm a developer on a JDO implementation and we support PostgreSQL as a
database. When obtaining a connection for the DB we do a
setAutoCommit(false). Nothing controversial there. I've used PostgreSQL
7.3.* with no problems and also 7.4.1-2 with no problems. I do however
have
a user saying that he is using latest PostgreSQL (postgresql 7.4.2 with
pg74.213.jdbc3 is what he told me) and our call to setAutoCommit(false)
apparently returns 

java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer
supported

at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131)
at 
org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:482)
at 
org.postgresql.jdbc1.AbstractJdbc1Connection.ExecSQL(AbstractJdbc1Connection.java:461)
at 
org.postgresql.jdbc1.AbstractJdbc1Connection.setAutoCommit(AbstractJdbc1Connection.java:957)
at 
org.jpox.store.adapter.DatabaseAdapter.getConnection(DatabaseAdapter.java:702)



Is there any good reason why he is getting this ? If so, what are
client
applications supposed to do to not have things auto-committed ?

TIA

=====



	
	
		
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: setAutoCommit(false)
@ 2004-05-12 10:06  Kris Jurka <books@ejurka.com>
  parent: Andy Jefferson <andy_jefferson@yahoo.com>
  1 sibling, 1 reply; 5+ messages in thread

From: Kris Jurka @ 2004-05-12 10:06 UTC (permalink / raw)
  To: andy@ajsoft.net; +Cc: pgsql-jdbc



On Wed, 12 May 2004, [iso-8859-1] Andy Jefferson wrote:

> I do however have a user saying that he is using latest PostgreSQL
> (postgresql 7.4.2 with pg74.213.jdbc3 is what he told me) and our call
> to setAutoCommit(false) apparently returns
> 
> java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer
> supported
> 
> at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:131)

The user is not using a 7.4 series JDBC driver.  They likely have the 7.3
driver hidden somewhere in their classpath which is being used.  This
error and associated stack trace are not from a 7.4 driver.

Kris Jurka



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: setAutoCommit(false)
@ 2004-05-12 10:50  Oliver Jowett <oliver@opencloud.com>
  parent: Andy Jefferson <andy_jefferson@yahoo.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Oliver Jowett @ 2004-05-12 10:50 UTC (permalink / raw)
  To: andy@ajsoft.net; +Cc: pgsql-jdbc

Andy Jefferson wrote:
> Hi,
> 
> I'm a developer on a JDO implementation and we support PostgreSQL as a
> database. When obtaining a connection for the DB we do a
> setAutoCommit(false). Nothing controversial there. I've used PostgreSQL
> 7.3.* with no problems and also 7.4.1-2 with no problems. I do however
> have
> a user saying that he is using latest PostgreSQL (postgresql 7.4.2 with
> pg74.213.jdbc3 is what he told me) and our call to setAutoCommit(false)
> apparently returns 
> 
> java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer
> supported

This happens if you use a 7.3-series driver against a 7.4-series 
database. The most likely cause is that your user is not using the 
driver they think they are; perhaps there is an older version of the 
driver earlier in the classpath or in the JVM's extension search path.

-O



^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: setAutoCommit(false)
@ 2004-05-12 15:48  Thomas Kellerer <spam_eater@gmx.net>
  parent: Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Thomas Kellerer @ 2004-05-12 15:48 UTC (permalink / raw)
  To: pgsql-jdbc

Kris Jurka schrieb:
>>I do however have a user saying that he is using latest PostgreSQL
>>(postgresql 7.4.2 with pg74.213.jdbc3 is what he told me) and our call
>>to setAutoCommit(false) apparently returns
>>
>>java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer
>>supported
>>
> 
> The user is not using a 7.4 series JDBC driver.  They likely have the 7.3
> driver hidden somewhere in their classpath which is being used.  This
> error and associated stack trace are not from a 7.4 driver.
> 

I'm seeing the same error with the 7.4 driver and the dev driver against 
the current Win32 builds...

Thomas




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: setAutoCommit(false)
@ 2004-05-12 18:25  Dave Cramer <pg@fastcrypt.com>
  parent: Thomas Kellerer <spam_eater@gmx.net>
  0 siblings, 0 replies; 5+ messages in thread

From: Dave Cramer @ 2004-05-12 18:25 UTC (permalink / raw)
  To: Thomas Kellerer <spam_eater@gmx.net>; +Cc: pgsql-jdbc

Thomas,

This is very definitely an old driver.

The best way to find this is to write a single line program
with a main and the following line.
Class.forName("org.posgtgresql.Driver")

then run java -verbose to see where it is loading the driver from.

Dave 
On Wed, 2004-05-12 at 11:48, Thomas Kellerer wrote:
> Kris Jurka schrieb:
> >>I do however have a user saying that he is using latest PostgreSQL
> >>(postgresql 7.4.2 with pg74.213.jdbc3 is what he told me) and our call
> >>to setAutoCommit(false) apparently returns
> >>
> >>java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer
> >>supported
> >>
> > 
> > The user is not using a 7.4 series JDBC driver.  They likely have the 7.3
> > driver hidden somewhere in their classpath which is being used.  This
> > error and associated stack trace are not from a 7.4 driver.
> > 
> 
> I'm seeing the same error with the 7.4 driver and the dev driver against 
> the current Win32 builds...
> 
> Thomas
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 
> 
> 
> !DSPAM:40a24b75281861655120010!
> 
> 
-- 
Dave Cramer
519 939 0336
ICQ # 14675561




^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2004-05-12 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-12 09:45 setAutoCommit(false) Andy Jefferson <andy_jefferson@yahoo.com>
2004-05-12 10:06 ` Kris Jurka <books@ejurka.com>
2004-05-12 15:48   ` Thomas Kellerer <spam_eater@gmx.net>
2004-05-12 18:25     ` Dave Cramer <pg@fastcrypt.com>
2004-05-12 10:50 ` Oliver Jowett <oliver@opencloud.com>

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