[TIMOB-3151] Android: Enable Transactions for Titanium.Database
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-16T11:02:45.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.0, Sprint 2011-12 |
Components | Android |
Labels | android, feature, release-1.7.0, reported-1.2.0 |
Reporter | Don Thorp |
Assignee | Don Thorp |
Created | 2011-04-15T03:38:06.000+0000 |
Updated | 2011-05-16T11:02:45.000+0000 |
Description
See #364
Android: testDatabaseRollback from Drillbit fails on Android only
Steps to Reproduce:
1. Run Drillbit and execute test Ti.Database tests
2. Select the test to be ran on iOS and Android
Actual Result:
All test pass on iOS
Android Emulator 2.1: fails: testDatabaseRollback false 136 should be: "0", was: "30"
Expected Result:
Should all Pass
Tested with build: Titanium SDK version: 1.7.0 (03/17/11 10:02 630a276)
(from [eba7fd2e0ed9110d701123c5b2917c07bbf86165]) [#3151 state:fixed-in-qa] The failure of the test was caused by the use of the savepoint statement which is not available on devices with API Level 8 (2.1) or lower. I modified the test to check for a failure of savepoint and if it fails not execute the rest of that test. I renamed the test testDatabaseSavepointRollback and added a new simple transaction test, testDatabaseRollback. https://github.com/appcelerator/titanium_mobile/commit/eba7fd2e0ed9110d701123c5b2917c07bbf86165"> https://github.com/appcelerator/titanium_mobile/commit/eba7fd2e0ed9...
Tested with 1.7.0 (9042d2d) on Emulator 2.1 testDatabaseRollback true 145 Success