{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/firefox-ios/pulls/comments/76208426","id":76208426,"diff_hunk":"@@ -430,12 +430,20 @@ extension BrowserDB: Queryable {\n \n     func queryReturnsResults(sql: String, args: Args?=nil) -> Deferred<Maybe<Bool>> {\n         return self.runQuery(sql, args: args, factory: { row in true })\n-         >>== { deferMaybe($0[0] ?? false) }\n+            >>== { if ($0.status == .Success) && ($0.count > 0) {\n+                return deferMaybe($0[0] ?? false)","path":"Storage/SQL/BrowserDB.swift","position":6,"original_position":6,"commit_id":"ed883de165d7145fe783fc6783126b824837c92b","original_commit_id":"ed883de165d7145fe783fc6783126b824837c92b","user":{"login":"mauryat","id":9949800,"avatar_url":"https://avatars.githubusercontent.com/u/9949800?v=3","gravatar_id":"","url":"https://api.github.com/users/mauryat","html_url":"https://github.com/mauryat","followers_url":"https://api.github.com/users/mauryat/followers","following_url":"https://api.github.com/users/mauryat/following{/other_user}","gists_url":"https://api.github.com/users/mauryat/gists{/gist_id}","starred_url":"https://api.github.com/users/mauryat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauryat/subscriptions","organizations_url":"https://api.github.com/users/mauryat/orgs","repos_url":"https://api.github.com/users/mauryat/repos","events_url":"https://api.github.com/users/mauryat/events{/privacy}","received_events_url":"https://api.github.com/users/mauryat/received_events","type":"User","site_admin":false},"body":"Also, what does $0[0] actually refer to? I'm assuming it's the first column of the current row pointed to by the cursor. If that is so, what does a boolean value of a column indicate?","created_at":"2016-08-25T09:19:47Z","updated_at":"2016-08-25T09:19:47Z","html_url":"https://github.com/mozilla/firefox-ios/pull/2061#discussion_r76208426","pull_request_url":"https://api.github.com/repos/mozilla/firefox-ios/pulls/2061","_links":{"self":{"href":"https://api.github.com/repos/mozilla/firefox-ios/pulls/comments/76208426"},"html":{"href":"https://github.com/mozilla/firefox-ios/pull/2061#discussion_r76208426"},"pull_request":{"href":"https://api.github.com/repos/mozilla/firefox-ios/pulls/2061"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/firefox-ios/pulls/2061","id":82575591,"html_url":"https://github.com/mozilla/firefox-ios/pull/2061","diff_url":"https://github.com/mozilla/firefox-ios/pull/2061.diff","patch_url":"https://github.com/mozilla/firefox-ios/pull/2061.patch","issue_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/2061","number":2061,"state":"open","locked":false,"title":"Bug 1278235 - Prevent duplicate bookmarking from Share To Menu","user":{"login":"mauryat","id":9949800,"avatar_url":"https://avatars.githubusercontent.com/u/9949800?v=3","gravatar_id":"","url":"https://api.github.com/users/mauryat","html_url":"https://github.com/mauryat","followers_url":"https://api.github.com/users/mauryat/followers","following_url":"https://api.github.com/users/mauryat/following{/other_user}","gists_url":"https://api.github.com/users/mauryat/gists{/gist_id}","starred_url":"https://api.github.com/users/mauryat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauryat/subscriptions","organizations_url":"https://api.github.com/users/mauryat/orgs","repos_url":"https://api.github.com/users/mauryat/repos","events_url":"https://api.github.com/users/mauryat/events{/privacy}","received_events_url":"https://api.github.com/users/mauryat/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-24T16:30:58Z","updated_at":"2016-08-25T09:19:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3085a2af472decf5801665d7c9ca62d9c3090902","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/firefox-ios/pulls/2061/commits","review_comments_url":"https://api.github.com/repos/mozilla/firefox-ios/pulls/2061/comments","review_comment_url":"https://api.github.com/repos/mozilla/firefox-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/2061/comments","statuses_url":"https://api.github.com/repos/mozilla/firefox-ios/statuses/ed883de165d7145fe783fc6783126b824837c92b","head":{"label":"mauryat:Bug-1278235-bookmarking-not-working-from-share-menu","ref":"Bug-1278235-bookmarking-not-working-from-share-menu","sha":"ed883de165d7145fe783fc6783126b824837c92b","user":{"login":"mauryat","id":9949800,"avatar_url":"https://avatars.githubusercontent.com/u/9949800?v=3","gravatar_id":"","url":"https://api.github.com/users/mauryat","html_url":"https://github.com/mauryat","followers_url":"https://api.github.com/users/mauryat/followers","following_url":"https://api.github.com/users/mauryat/following{/other_user}","gists_url":"https://api.github.com/users/mauryat/gists{/gist_id}","starred_url":"https://api.github.com/users/mauryat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauryat/subscriptions","organizations_url":"https://api.github.com/users/mauryat/orgs","repos_url":"https://api.github.com/users/mauryat/repos","events_url":"https://api.github.com/users/mauryat/events{/privacy}","received_events_url":"https://api.github.com/users/mauryat/received_events","type":"User","site_admin":false},"repo":{"id":57440044,"name":"firefox-ios","full_name":"mauryat/firefox-ios","owner":{"login":"mauryat","id":9949800,"avatar_url":"https://avatars.githubusercontent.com/u/9949800?v=3","gravatar_id":"","url":"https://api.github.com/users/mauryat","html_url":"https://github.com/mauryat","followers_url":"https://api.github.com/users/mauryat/followers","following_url":"https://api.github.com/users/mauryat/following{/other_user}","gists_url":"https://api.github.com/users/mauryat/gists{/gist_id}","starred_url":"https://api.github.com/users/mauryat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauryat/subscriptions","organizations_url":"https://api.github.com/users/mauryat/orgs","repos_url":"https://api.github.com/users/mauryat/repos","events_url":"https://api.github.com/users/mauryat/events{/privacy}","received_events_url":"https://api.github.com/users/mauryat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mauryat/firefox-ios","description":"Firefox for iOS","fork":true,"url":"https://api.github.com/repos/mauryat/firefox-ios","forks_url":"https://api.github.com/repos/mauryat/firefox-ios/forks","keys_url":"https://api.github.com/repos/mauryat/firefox-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mauryat/firefox-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mauryat/firefox-ios/teams","hooks_url":"https://api.github.com/repos/mauryat/firefox-ios/hooks","issue_events_url":"https://api.github.com/repos/mauryat/firefox-ios/issues/events{/number}","events_url":"https://api.github.com/repos/mauryat/firefox-ios/events","assignees_url":"https://api.github.com/repos/mauryat/firefox-ios/assignees{/user}","branches_url":"https://api.github.com/repos/mauryat/firefox-ios/branches{/branch}","tags_url":"https://api.github.com/repos/mauryat/firefox-ios/tags","blobs_url":"https://api.github.com/repos/mauryat/firefox-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mauryat/firefox-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mauryat/firefox-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/mauryat/firefox-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mauryat/firefox-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/mauryat/firefox-ios/languages","stargazers_url":"https://api.github.com/repos/mauryat/firefox-ios/stargazers","contributors_url":"https://api.github.com/repos/mauryat/firefox-ios/contributors","subscribers_url":"https://api.github.com/repos/mauryat/firefox-ios/subscribers","subscription_url":"https://api.github.com/repos/mauryat/firefox-ios/subscription","commits_url":"https://api.github.com/repos/mauryat/firefox-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/mauryat/firefox-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/mauryat/firefox-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/mauryat/firefox-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/mauryat/firefox-ios/contents/{+path}","compare_url":"https://api.github.com/repos/mauryat/firefox-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mauryat/firefox-ios/merges","archive_url":"https://api.github.com/repos/mauryat/firefox-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mauryat/firefox-ios/downloads","issues_url":"https://api.github.com/repos/mauryat/firefox-ios/issues{/number}","pulls_url":"https://api.github.com/repos/mauryat/firefox-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/mauryat/firefox-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/mauryat/firefox-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mauryat/firefox-ios/labels{/name}","releases_url":"https://api.github.com/repos/mauryat/firefox-ios/releases{/id}","deployments_url":"https://api.github.com/repos/mauryat/firefox-ios/deployments","created_at":"2016-04-30T12:01:36Z","updated_at":"2016-04-30T12:01:43Z","pushed_at":"2016-08-24T16:30:02Z","git_url":"git://github.com/mauryat/firefox-ios.git","ssh_url":"git@github.com:mauryat/firefox-ios.git","clone_url":"https://github.com/mauryat/firefox-ios.git","svn_url":"https://github.com/mauryat/firefox-ios","homepage":"","size":195121,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"cb6e676a5464d940fb2ca8e45342c9c049e24750","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":26133979,"name":"firefox-ios","full_name":"mozilla/firefox-ios","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/firefox-ios","description":"Firefox for iOS","fork":false,"url":"https://api.github.com/repos/mozilla/firefox-ios","forks_url":"https://api.github.com/repos/mozilla/firefox-ios/forks","keys_url":"https://api.github.com/repos/mozilla/firefox-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/firefox-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/firefox-ios/teams","hooks_url":"https://api.github.com/repos/mozilla/firefox-ios/hooks","issue_events_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/firefox-ios/events","assignees_url":"https://api.github.com/repos/mozilla/firefox-ios/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/firefox-ios/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/firefox-ios/tags","blobs_url":"https://api.github.com/repos/mozilla/firefox-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/firefox-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/firefox-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/firefox-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/firefox-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/firefox-ios/languages","stargazers_url":"https://api.github.com/repos/mozilla/firefox-ios/stargazers","contributors_url":"https://api.github.com/repos/mozilla/firefox-ios/contributors","subscribers_url":"https://api.github.com/repos/mozilla/firefox-ios/subscribers","subscription_url":"https://api.github.com/repos/mozilla/firefox-ios/subscription","commits_url":"https://api.github.com/repos/mozilla/firefox-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/firefox-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/firefox-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/firefox-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/firefox-ios/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/firefox-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/firefox-ios/merges","archive_url":"https://api.github.com/repos/mozilla/firefox-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/firefox-ios/downloads","issues_url":"https://api.github.com/repos/mozilla/firefox-ios/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/firefox-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/firefox-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/firefox-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/firefox-ios/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/firefox-ios/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/firefox-ios/deployments","created_at":"2014-11-03T19:07:02Z","updated_at":"2016-08-25T07:32:29Z","pushed_at":"2016-08-25T01:08:31Z","git_url":"git://github.com/mozilla/firefox-ios.git","ssh_url":"git@github.com:mozilla/firefox-ios.git","clone_url":"https://github.com/mozilla/firefox-ios.git","svn_url":"https://github.com/mozilla/firefox-ios","homepage":"","size":288974,"stargazers_count":5968,"watchers_count":5968,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1201,"mirror_url":null,"open_issues_count":53,"forks":1201,"open_issues":53,"watchers":5968,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/firefox-ios/pulls/2061"},"html":{"href":"https://github.com/mozilla/firefox-ios/pull/2061"},"issue":{"href":"https://api.github.com/repos/mozilla/firefox-ios/issues/2061"},"comments":{"href":"https://api.github.com/repos/mozilla/firefox-ios/issues/2061/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/firefox-ios/pulls/2061/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/firefox-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/firefox-ios/pulls/2061/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/firefox-ios/statuses/ed883de165d7145fe783fc6783126b824837c92b"}}}}
{"actor":{"display_login":"mauryat"}}