Changes between Version 16 and Version 17 of MapGuideRfc78


Ignore:
Timestamp:
Jul 9, 2009, 11:46:51 PM (15 years ago)
Author:
klain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc78

    v16 v17  
    3434                                              bool useTransaction ) = 0;
    3535}}}
    36 However, MapGuide Feature Service also provides another two APIs to execute sql statements as illustrated below, where a database transaction will internally be started and committed befor and after the sql statement execution. Here the capability of executing a sequence of sql statements within a single transaction is missing.
     36However, MapGuide Feature Service also provides another two APIs to execute sql statements as illustrated below, where a database transaction will internally be started and committed before and after the sql statement execution. Here the capability of executing a sequence of sql statements within a single transaction is missing.
    3737{{{
    3838virtual INT32 ExecuteSqlNonQuery( MgResourceIdentifier* resource,
     
    115115Bind MgTransaction to FDO connection
    116116
    117 The transaction has to be bound with the underlying FDO connection where it starts from during its life circle. The underlying FDO connection will be kept used by the transaction until the call of either Commit() or Rollback().
     117The transaction has to be bound with the underlying FDO connection where it starts during its life circle. The underlying FDO connection will be kept used by the transaction until the call of either Commit() or Rollback().
    118118
    119119== Implications ==
    120120
    121 This is the new API, so API documentation need to be updated. However, it will not affect the existing application if you don't use it at all.
     121This is a new API, so API documentation need to be updated. However, it will not affect the existing application if you don't use it at all.
    122122
    123123As noted in the above example, if you use it along with UpdateFeatures(), additional attention should be paid not to pass in true for useTransaction. Otherwise, it will incur a nested transaction which is currently not supported by FDO.