[fdo-users] transaction using fdo-postgis provider

Jackie Ng jumpinjackie at gmail.com
Thu Jul 4 19:27:17 PDT 2013


"Is not working" is not a very useful thing to say to a programmer :)

Long Transactions is an Oracle-ism that does not relate to what you're
trying to do. The PostGIS provider does not support Long Transactions so the
question is moot.

The FdoITransaction does not autocommit. It requires explicit
commit/rollback.

So your code would look something like this

FdoPtr<FdoITransaction> trans = fdoConn->BeginTransaction();
try
{
     //Do your changes here

     //Commit the transaction when done
     trans->Commit();
}
catch (FdoException* ex) //Something went wrong
{
     trans->Rollback();
     ex->Release();
}

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/transaction-using-fdo-postgis-provider-tp5064065p5064200.html
Sent from the FDO Users mailing list archive at Nabble.com.


More information about the fdo-users mailing list