{ "id": "116319", "key": "ALOY-718", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-06-21T15:21:43.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "alloy", "sqlite" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-03-07T22:26:07.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "13605", "name": "Models" }, { "id": "12329", "name": "Runtime", "description": "Generic bucket for uncategorized runtime issues" } ], "description": "The query that is passed to fetch() when using the sql sync adapter requires the table name to be specified. The example in Git https://github.com/appcelerator/alloy/blob/master/test/apps/models/sql_queries/controllers/main.js highlights the issue.\r\n\r\nSo the collection is called color, but the table name is colors.\r\n\r\nIt would be better if the table name could be replaced with a place holder in the string e.g. {tablename} or if the sql string does not start with SELECT then a SELECT * FROM is pre-pended.\r\n\r\nAlternatively, expose the tablename as a property of the Alloy Collection", "attachment": [], "flagged": false, "summary": "ALLOY: SQL sync adapter should not require knowledge of the table name", "creator": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "ndastur", "key": "ndastur", "displayName": "Neville Dastur", "active": true, "timeZone": "Europe/London" }, "environment": "Alloy 1.3", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }