MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
sylob
Post subject: Transaction problem with SQL Editor (MyEclipse 4)  PostPosted: Sep 20, 2006 - 03:16 PM
Veteran Member
Veteran Member


Joined: Mar 08, 2005
Posts: 17

Hi,

I created a sql file with several SQL queries.
If one of them fail, I want all to rollback, so I introduced a begin work at the beginning of my file and activated the AutoCommit preference.

But when an error occurs, I get the useless message :
ERROR: current transaction is aborted, commands ignored until end of transaction block.

I get no information about the error that occured. To get this information, I must delete the begin work statement. But if I do that, the first queries which are correct are commited and the ones after the error don't execute.

How can I get the error message that helps me to diagnose the problem and rollback all the queries when there's a problem ?

Regards
A. ROY
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-snpe
Post subject:   PostPosted: Sep 20, 2006 - 06:51 PM
Moderator
Moderator


Joined: Feb 03, 2006
Posts: 1117

ROY,

Please, try set auto commit to off - auto commit on will try commit after every command and you won't that

Whe you set auto commit to off you have to call auto commit explicit when you want

Best
Peco
 
 View user's profile Send private message  
Reply with quote Back to top
sylob
Post subject:   PostPosted: Sep 21, 2006 - 08:33 AM
Veteran Member
Veteran Member


Joined: Mar 08, 2005
Posts: 17

Hi Peco,

Setting auto commit off doesn't change anything. My problem is about the error message displayed by the SQL Editor when an error occurs. I get a message telling me that the transaction is aborted which is not very usefull whereas I'd prefer get a message about the SQL error causing the transaction to abort.

Regards
A. ROY
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits