-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: java.sql.SQLException with schemaexport and postgresql
PostPosted: Tue Apr 20, 2004 5:28 am 
Newbie

Joined: Mon Apr 19, 2004 12:55 pm
Posts: 6
Hi,

I tryed to create a db schema with the schema export tool but I got the following exception :
[schemaexport] 18:40:22,302 ERROR SchemaExport:165 - schema export unsuccessful
[schemaexport] java.sql.SQLException: ERROR: SET AUTOCOMMIT TO OFF is no longer supported

I use postgresql 7.4.1.3 and the jdbc driver postgres-jdbc2-7.3.jar.

The problem seems to be that schema export tool try to set autocommit to OFF instead of doing an explicit commit.

Is there a way to do this?
If not, how can I run hibernate over my configuration?

Regards,
Christophe D.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 20, 2004 5:58 am 
Regular
Regular

Joined: Wed Mar 03, 2004 9:38 am
Posts: 70
You're using the wrong JDBC driver. Use the driver for PostgreSQL 7.4.

Formerly autocommit was a server setting, but in 7.4 autocommit is something that the driver handles all by itself. The server doesn't understand the concept of autocommit anymore.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 20, 2004 8:18 am 
Newbie

Joined: Mon Apr 19, 2004 12:55 pm
Posts: 6
Thanks it's work fine now.

I really appreciate the quick answer.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.