{"action":"created","issue":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/68","labels_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/68/comments","events_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/68/events","html_url":"https://github.com/dfahlander/Dexie.js/issues/68","id":59598476,"number":68,"title":"Error on iPad when more than one store","user":{"login":"idtplans","id":3333221,"avatar_url":"https://avatars.githubusercontent.com/u/3333221?v=3","gravatar_id":"","url":"https://api.github.com/users/idtplans","html_url":"https://github.com/idtplans","followers_url":"https://api.github.com/users/idtplans/followers","following_url":"https://api.github.com/users/idtplans/following{/other_user}","gists_url":"https://api.github.com/users/idtplans/gists{/gist_id}","starred_url":"https://api.github.com/users/idtplans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idtplans/subscriptions","organizations_url":"https://api.github.com/users/idtplans/orgs","repos_url":"https://api.github.com/users/idtplans/repos","events_url":"https://api.github.com/users/idtplans/events{/privacy}","received_events_url":"https://api.github.com/users/idtplans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-03T05:51:50Z","updated_at":"2015-03-03T08:53:59Z","closed_at":null,"body":"I seem to be struggling with Dexie.js on an iPad.  Can anyone please help me figure out why this code is seems fine on chrome but won't work on an ipad?  If i comment out the folder store, it seems to work fine.  I've even tried with the newest version uploaded 3 days ago without any luck.\r\n\r\n    <script>\r\n    var db = new Dexie('test');\r\n    db.version(1)\r\n     .stores({\r\n      identity: 'id,contactId',\r\n      folder: 'folderId, folderName'\r\n    });\r\n\r\n    db.open()\r\n     .then(function() {return db.identity.put({id: 1, contactId: 819})})\r\n     .catch(function (error) {\r\n      $('#error1').html(JSON.stringify(error));\r\n    });\r\n\r\n    $(function() {\r\n     db.identity.where('id').equals(1).first(\r\n      function(identity) {\r\n      $('#info').html(identity.firstName);\r\n     }\r\n     ).catch(function (error) {\r\n      $('#error2').html(JSON.stringify(error));\r\n     });\r\n    });\r\n    </script>\r\n    <div id=\"info\">0</div>\r\n    <div id=\"error1\">0</div>\r\n    <div id=\"error2\">0</div>\r\n\r\nThe error that comes up is NotFoundError: DOM IDBBatabase Exception 8, line 529, column 87"},"comment":{"url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/comments/76908149","html_url":"https://github.com/dfahlander/Dexie.js/issues/68#issuecomment-76908149","issue_url":"https://api.github.com/repos/dfahlander/Dexie.js/issues/68","id":76908149,"user":{"login":"dfahlander","id":6791329,"avatar_url":"https://avatars.githubusercontent.com/u/6791329?v=3","gravatar_id":"","url":"https://api.github.com/users/dfahlander","html_url":"https://github.com/dfahlander","followers_url":"https://api.github.com/users/dfahlander/followers","following_url":"https://api.github.com/users/dfahlander/following{/other_user}","gists_url":"https://api.github.com/users/dfahlander/gists{/gist_id}","starred_url":"https://api.github.com/users/dfahlander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfahlander/subscriptions","organizations_url":"https://api.github.com/users/dfahlander/orgs","repos_url":"https://api.github.com/users/dfahlander/repos","events_url":"https://api.github.com/users/dfahlander/events{/privacy}","received_events_url":"https://api.github.com/users/dfahlander/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T08:53:59Z","updated_at":"2015-03-03T08:53:59Z","body":"IndexedDB has a buggy implementation on Safari when it comes to multiple object stores. I've tried to do my best to work around some of the bugs. One of the bugs is that multiple stores cannot have primary keys that collide. This is something that could be worked around, but not as part of Dexie because it would bloat the library.\r\n\r\nHowever, if I get you correct, you cannot even define multiple object stores. This is something that could be fixed I believe. Could you see at which line in Dexie.js it fails? (If you see a stack on the catched error, or if you could debug it and see if it throws an exception somewhere)\r\n"}}