Changes between Version 16 and Version 17 of MapGuideRfc78
- Timestamp:
- 07/09/09 23:46:51 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc78
v16 v17 34 34 bool useTransaction ) = 0; 35 35 }}} 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.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 before and after the sql statement execution. Here the capability of executing a sequence of sql statements within a single transaction is missing. 37 37 {{{ 38 38 virtual INT32 ExecuteSqlNonQuery( MgResourceIdentifier* resource, … … 115 115 Bind MgTransaction to FDO connection 116 116 117 The transaction has to be bound with the underlying FDO connection where it starts fromduring its life circle. The underlying FDO connection will be kept used by the transaction until the call of either Commit() or Rollback().117 The 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(). 118 118 119 119 == Implications == 120 120 121 This is thenew API, so API documentation need to be updated. However, it will not affect the existing application if you don't use it at all.121 This 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. 122 122 123 123 As 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.