{ "id": "63251", "key": "TIMOB-2619", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11247", "name": "Sprint 2011-12", "archived": true, "released": true, "releaseDate": "2011-03-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-26T12:45:03.000+0000", "created": "2011-04-15T03:25:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "database", "defect", "release-1.5.1", "release-1.7.0" ], "versions": [], "issuelinks": [ { "id": "10580", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "65667", "key": "TIMOB-4173", "fields": { "summary": "iOS: Expose SQLite exceptions for Ti.Database", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "10582", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "65668", "key": "TIMOB-4174", "fields": { "summary": "Ti.Database does not expose SQLite exceptions", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "10310", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64775", "key": "TIMOB-3705", "fields": { "summary": "Confirm TIMOB-2619", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-23T10:21:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}
No sqlite exceptions are exposed to the Ti user. For android,\nexceptions can be viewed using adb.
\nThe following situations were discussed with Don:
\nError executing sql: error code 19: constraint\nfailed
. However, Titanium will continue with the following\nrow inserts and they will be inserted successfully.\"insert into
condition\" values('some',,'my\nurl');returns
Error: near \",\": syntax error.\nHowever, Titanium will insert the data with 'undefined' in the\nNOTNULL columns
Possibly there are pros and cons to Titanium's behaviour, so it\nprobably needs further consideration and more examples.
Also an issue with iOS, for the record.
I think this is a very important ticket since an error in the\nstatement or a constraint failure crashes the whole app without any\npossibility to circumvent this. The Priority should be higher than\n\"Low\" and I would like to have a solution for this as soon as\npossible.
\nBy the way, it's a duplicate of #1666
@Martin we use 1 ticket per platform so it's not technically a\nduplicate.
(from [d608fe27b052f7e13bd47b35a27b7e3dbf6d6711])\n[#2619 state:fixed-in-qa] exception chucking\nenabled \nhttps://github.com/appcelerator/titanium_mobile/commit/d608fe27b052...