Re: [pgAdmin III] #47: Savepoints in PgAdmin - Mailing list pgadmin-hackers

From pgAdmin Trac
Subject Re: [pgAdmin III] #47: Savepoints in PgAdmin
Date
Msg-id 062.d807a9bcbd0183bd7b375bb631727ea2@code.pgadmin.org
Whole thread Raw
In response to [pgAdmin III] #47: Savepoints in PgAdmin  ("pgAdmin Trac" <trac@code.pgadmin.org>)
List pgadmin-hackers
#47: Savepoints in PgAdmin
---------------------------+------------------------------------------------
 Reporter:  Cédric DUPREZ  |       Owner:  dpage 
     Type:  bug            |      Status:  new   
 Priority:  minor          |   Milestone:  1.10.1
Component:  pgadmin        |     Version:  1.8   
 Keywords:  querytool      |    Platform:  all   
---------------------------+------------------------------------------------

Comment(by gleu):

 If it fails, pgAdmin automatically does a ROLLBACK. In the
 frmQuery::completeQuery() method, there is this code:

 // If the transaction aborted for some reason, issue a rollback to
 cleanup.
 if (conn->GetTxStatus() == PGCONN_TXSTATUS_INERROR)
     conn->ExecuteVoid(wxT("ROLLBACK;"));

 We should perhaps have an option to enable/disable this behaviour

--
Ticket URL: <http://code.pgadmin.org/trac/ticket/47#comment:1>
pgAdmin III <http://code.pgadmin.org/trac/>
pgAdmin III

pgadmin-hackers by date:

Previous
From: "pgAdmin Trac"
Date:
Subject: [pgAdmin III] #47: Savepoints in PgAdmin
Next
From: Julius Tuskenis
Date:
Subject: reconnecting to DB after connection break