{"action":"created","comment":{"url":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/comments/74014276","id":74014276,"diff_hunk":"@@ -30,6 +30,19 @@ describe('operator.test.js', function () {\n       let op = new Operator();\n       assert.equal(op.format('SET ?? = ?', ['dt', op.literals.now], true), 'SET `dt` = now()');\n     });\n+\n+    it('should get literal string by string', function () {\n+      let op = new Operator();\n+      assert.equal(op.format('SET name = ?', 'test'), 'SET name = \\'test\\'');\n+    });\n+\n+    it('should get literal string by object', function () {\n+      let op = new Operator();\n+      assert.equal(op.format('SET dt = :now and name = :name and age = :age', {\n+        now: op.literals.now,\n+        name: 'test'\n+      }), 'SET dt = now() and name = \\'test\\' and age = :age');","path":"test/operator.test.js","position":15,"original_position":15,"commit_id":"6d56924c99da9e27d5acd95cb6830829dbcdcd04","original_commit_id":"6d56924c99da9e27d5acd95cb6830829dbcdcd04","user":{"login":"fengmk2","id":156269,"avatar_url":"https://avatars.githubusercontent.com/u/156269?v=3","gravatar_id":"","url":"https://api.github.com/users/fengmk2","html_url":"https://github.com/fengmk2","followers_url":"https://api.github.com/users/fengmk2/followers","following_url":"https://api.github.com/users/fengmk2/following{/other_user}","gists_url":"https://api.github.com/users/fengmk2/gists{/gist_id}","starred_url":"https://api.github.com/users/fengmk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengmk2/subscriptions","organizations_url":"https://api.github.com/users/fengmk2/orgs","repos_url":"https://api.github.com/users/fengmk2/repos","events_url":"https://api.github.com/users/fengmk2/events{/privacy}","received_events_url":"https://api.github.com/users/fengmk2/received_events","type":"User","site_admin":false},"body":"加上边界条件，null, undefined, 0, 1, 'foo', true, false 等。","created_at":"2016-08-09T08:02:32Z","updated_at":"2016-08-09T08:02:32Z","html_url":"https://github.com/ali-sdk/ali-rds/pull/12#discussion_r74014276","pull_request_url":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/comments/74014276"},"html":{"href":"https://github.com/ali-sdk/ali-rds/pull/12#discussion_r74014276"},"pull_request":{"href":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/12","id":80571180,"html_url":"https://github.com/ali-sdk/ali-rds/pull/12","diff_url":"https://github.com/ali-sdk/ali-rds/pull/12.diff","patch_url":"https://github.com/ali-sdk/ali-rds/pull/12.patch","issue_url":"https://api.github.com/repos/ali-sdk/ali-rds/issues/12","number":12,"state":"open","locked":false,"title":"feat: support query(sql, object)","user":{"login":"fangk","id":4192962,"avatar_url":"https://avatars.githubusercontent.com/u/4192962?v=3","gravatar_id":"","url":"https://api.github.com/users/fangk","html_url":"https://github.com/fangk","followers_url":"https://api.github.com/users/fangk/followers","following_url":"https://api.github.com/users/fangk/following{/other_user}","gists_url":"https://api.github.com/users/fangk/gists{/gist_id}","starred_url":"https://api.github.com/users/fangk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fangk/subscriptions","organizations_url":"https://api.github.com/users/fangk/orgs","repos_url":"https://api.github.com/users/fangk/repos","events_url":"https://api.github.com/users/fangk/events{/privacy}","received_events_url":"https://api.github.com/users/fangk/received_events","type":"User","site_admin":false},"body":"close: #11 ","created_at":"2016-08-09T07:06:02Z","updated_at":"2016-08-09T08:02:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed413ee105f4d7755923edc526b5bcb2d62ce333","assignee":{"login":"fengmk2","id":156269,"avatar_url":"https://avatars.githubusercontent.com/u/156269?v=3","gravatar_id":"","url":"https://api.github.com/users/fengmk2","html_url":"https://github.com/fengmk2","followers_url":"https://api.github.com/users/fengmk2/followers","following_url":"https://api.github.com/users/fengmk2/following{/other_user}","gists_url":"https://api.github.com/users/fengmk2/gists{/gist_id}","starred_url":"https://api.github.com/users/fengmk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengmk2/subscriptions","organizations_url":"https://api.github.com/users/fengmk2/orgs","repos_url":"https://api.github.com/users/fengmk2/repos","events_url":"https://api.github.com/users/fengmk2/events{/privacy}","received_events_url":"https://api.github.com/users/fengmk2/received_events","type":"User","site_admin":false},"assignees":[{"login":"fengmk2","id":156269,"avatar_url":"https://avatars.githubusercontent.com/u/156269?v=3","gravatar_id":"","url":"https://api.github.com/users/fengmk2","html_url":"https://github.com/fengmk2","followers_url":"https://api.github.com/users/fengmk2/followers","following_url":"https://api.github.com/users/fengmk2/following{/other_user}","gists_url":"https://api.github.com/users/fengmk2/gists{/gist_id}","starred_url":"https://api.github.com/users/fengmk2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengmk2/subscriptions","organizations_url":"https://api.github.com/users/fengmk2/orgs","repos_url":"https://api.github.com/users/fengmk2/repos","events_url":"https://api.github.com/users/fengmk2/events{/privacy}","received_events_url":"https://api.github.com/users/fengmk2/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/12/commits","review_comments_url":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/12/comments","review_comment_url":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ali-sdk/ali-rds/issues/12/comments","statuses_url":"https://api.github.com/repos/ali-sdk/ali-rds/statuses/6d56924c99da9e27d5acd95cb6830829dbcdcd04","head":{"label":"fangk:master","ref":"master","sha":"6d56924c99da9e27d5acd95cb6830829dbcdcd04","user":{"login":"fangk","id":4192962,"avatar_url":"https://avatars.githubusercontent.com/u/4192962?v=3","gravatar_id":"","url":"https://api.github.com/users/fangk","html_url":"https://github.com/fangk","followers_url":"https://api.github.com/users/fangk/followers","following_url":"https://api.github.com/users/fangk/following{/other_user}","gists_url":"https://api.github.com/users/fangk/gists{/gist_id}","starred_url":"https://api.github.com/users/fangk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fangk/subscriptions","organizations_url":"https://api.github.com/users/fangk/orgs","repos_url":"https://api.github.com/users/fangk/repos","events_url":"https://api.github.com/users/fangk/events{/privacy}","received_events_url":"https://api.github.com/users/fangk/received_events","type":"User","site_admin":false},"repo":{"id":65261100,"name":"ali-rds","full_name":"fangk/ali-rds","owner":{"login":"fangk","id":4192962,"avatar_url":"https://avatars.githubusercontent.com/u/4192962?v=3","gravatar_id":"","url":"https://api.github.com/users/fangk","html_url":"https://github.com/fangk","followers_url":"https://api.github.com/users/fangk/followers","following_url":"https://api.github.com/users/fangk/following{/other_user}","gists_url":"https://api.github.com/users/fangk/gists{/gist_id}","starred_url":"https://api.github.com/users/fangk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fangk/subscriptions","organizations_url":"https://api.github.com/users/fangk/orgs","repos_url":"https://api.github.com/users/fangk/repos","events_url":"https://api.github.com/users/fangk/events{/privacy}","received_events_url":"https://api.github.com/users/fangk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fangk/ali-rds","description":"Aliyun RDS client","fork":true,"url":"https://api.github.com/repos/fangk/ali-rds","forks_url":"https://api.github.com/repos/fangk/ali-rds/forks","keys_url":"https://api.github.com/repos/fangk/ali-rds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fangk/ali-rds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fangk/ali-rds/teams","hooks_url":"https://api.github.com/repos/fangk/ali-rds/hooks","issue_events_url":"https://api.github.com/repos/fangk/ali-rds/issues/events{/number}","events_url":"https://api.github.com/repos/fangk/ali-rds/events","assignees_url":"https://api.github.com/repos/fangk/ali-rds/assignees{/user}","branches_url":"https://api.github.com/repos/fangk/ali-rds/branches{/branch}","tags_url":"https://api.github.com/repos/fangk/ali-rds/tags","blobs_url":"https://api.github.com/repos/fangk/ali-rds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fangk/ali-rds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fangk/ali-rds/git/refs{/sha}","trees_url":"https://api.github.com/repos/fangk/ali-rds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fangk/ali-rds/statuses/{sha}","languages_url":"https://api.github.com/repos/fangk/ali-rds/languages","stargazers_url":"https://api.github.com/repos/fangk/ali-rds/stargazers","contributors_url":"https://api.github.com/repos/fangk/ali-rds/contributors","subscribers_url":"https://api.github.com/repos/fangk/ali-rds/subscribers","subscription_url":"https://api.github.com/repos/fangk/ali-rds/subscription","commits_url":"https://api.github.com/repos/fangk/ali-rds/commits{/sha}","git_commits_url":"https://api.github.com/repos/fangk/ali-rds/git/commits{/sha}","comments_url":"https://api.github.com/repos/fangk/ali-rds/comments{/number}","issue_comment_url":"https://api.github.com/repos/fangk/ali-rds/issues/comments{/number}","contents_url":"https://api.github.com/repos/fangk/ali-rds/contents/{+path}","compare_url":"https://api.github.com/repos/fangk/ali-rds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fangk/ali-rds/merges","archive_url":"https://api.github.com/repos/fangk/ali-rds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fangk/ali-rds/downloads","issues_url":"https://api.github.com/repos/fangk/ali-rds/issues{/number}","pulls_url":"https://api.github.com/repos/fangk/ali-rds/pulls{/number}","milestones_url":"https://api.github.com/repos/fangk/ali-rds/milestones{/number}","notifications_url":"https://api.github.com/repos/fangk/ali-rds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fangk/ali-rds/labels{/name}","releases_url":"https://api.github.com/repos/fangk/ali-rds/releases{/id}","deployments_url":"https://api.github.com/repos/fangk/ali-rds/deployments","created_at":"2016-08-09T03:51:38Z","updated_at":"2016-08-09T03:51:41Z","pushed_at":"2016-08-09T07:03:43Z","git_url":"git://github.com/fangk/ali-rds.git","ssh_url":"git@github.com:fangk/ali-rds.git","clone_url":"https://github.com/fangk/ali-rds.git","svn_url":"https://github.com/fangk/ali-rds","homepage":null,"size":49,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"ali-sdk:master","ref":"master","sha":"663b53a7c1738059e5d04fc82be854d31ea72293","user":{"login":"ali-sdk","id":11186302,"avatar_url":"https://avatars.githubusercontent.com/u/11186302?v=3","gravatar_id":"","url":"https://api.github.com/users/ali-sdk","html_url":"https://github.com/ali-sdk","followers_url":"https://api.github.com/users/ali-sdk/followers","following_url":"https://api.github.com/users/ali-sdk/following{/other_user}","gists_url":"https://api.github.com/users/ali-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/ali-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ali-sdk/subscriptions","organizations_url":"https://api.github.com/users/ali-sdk/orgs","repos_url":"https://api.github.com/users/ali-sdk/repos","events_url":"https://api.github.com/users/ali-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/ali-sdk/received_events","type":"Organization","site_admin":false},"repo":{"id":31307684,"name":"ali-rds","full_name":"ali-sdk/ali-rds","owner":{"login":"ali-sdk","id":11186302,"avatar_url":"https://avatars.githubusercontent.com/u/11186302?v=3","gravatar_id":"","url":"https://api.github.com/users/ali-sdk","html_url":"https://github.com/ali-sdk","followers_url":"https://api.github.com/users/ali-sdk/followers","following_url":"https://api.github.com/users/ali-sdk/following{/other_user}","gists_url":"https://api.github.com/users/ali-sdk/gists{/gist_id}","starred_url":"https://api.github.com/users/ali-sdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ali-sdk/subscriptions","organizations_url":"https://api.github.com/users/ali-sdk/orgs","repos_url":"https://api.github.com/users/ali-sdk/repos","events_url":"https://api.github.com/users/ali-sdk/events{/privacy}","received_events_url":"https://api.github.com/users/ali-sdk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ali-sdk/ali-rds","description":"Aliyun RDS client","fork":false,"url":"https://api.github.com/repos/ali-sdk/ali-rds","forks_url":"https://api.github.com/repos/ali-sdk/ali-rds/forks","keys_url":"https://api.github.com/repos/ali-sdk/ali-rds/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ali-sdk/ali-rds/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ali-sdk/ali-rds/teams","hooks_url":"https://api.github.com/repos/ali-sdk/ali-rds/hooks","issue_events_url":"https://api.github.com/repos/ali-sdk/ali-rds/issues/events{/number}","events_url":"https://api.github.com/repos/ali-sdk/ali-rds/events","assignees_url":"https://api.github.com/repos/ali-sdk/ali-rds/assignees{/user}","branches_url":"https://api.github.com/repos/ali-sdk/ali-rds/branches{/branch}","tags_url":"https://api.github.com/repos/ali-sdk/ali-rds/tags","blobs_url":"https://api.github.com/repos/ali-sdk/ali-rds/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ali-sdk/ali-rds/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ali-sdk/ali-rds/git/refs{/sha}","trees_url":"https://api.github.com/repos/ali-sdk/ali-rds/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ali-sdk/ali-rds/statuses/{sha}","languages_url":"https://api.github.com/repos/ali-sdk/ali-rds/languages","stargazers_url":"https://api.github.com/repos/ali-sdk/ali-rds/stargazers","contributors_url":"https://api.github.com/repos/ali-sdk/ali-rds/contributors","subscribers_url":"https://api.github.com/repos/ali-sdk/ali-rds/subscribers","subscription_url":"https://api.github.com/repos/ali-sdk/ali-rds/subscription","commits_url":"https://api.github.com/repos/ali-sdk/ali-rds/commits{/sha}","git_commits_url":"https://api.github.com/repos/ali-sdk/ali-rds/git/commits{/sha}","comments_url":"https://api.github.com/repos/ali-sdk/ali-rds/comments{/number}","issue_comment_url":"https://api.github.com/repos/ali-sdk/ali-rds/issues/comments{/number}","contents_url":"https://api.github.com/repos/ali-sdk/ali-rds/contents/{+path}","compare_url":"https://api.github.com/repos/ali-sdk/ali-rds/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ali-sdk/ali-rds/merges","archive_url":"https://api.github.com/repos/ali-sdk/ali-rds/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ali-sdk/ali-rds/downloads","issues_url":"https://api.github.com/repos/ali-sdk/ali-rds/issues{/number}","pulls_url":"https://api.github.com/repos/ali-sdk/ali-rds/pulls{/number}","milestones_url":"https://api.github.com/repos/ali-sdk/ali-rds/milestones{/number}","notifications_url":"https://api.github.com/repos/ali-sdk/ali-rds/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ali-sdk/ali-rds/labels{/name}","releases_url":"https://api.github.com/repos/ali-sdk/ali-rds/releases{/id}","deployments_url":"https://api.github.com/repos/ali-sdk/ali-rds/deployments","created_at":"2015-02-25T10:07:55Z","updated_at":"2016-08-09T07:09:23Z","pushed_at":"2016-08-09T07:58:53Z","git_url":"git://github.com/ali-sdk/ali-rds.git","ssh_url":"git@github.com:ali-sdk/ali-rds.git","clone_url":"https://github.com/ali-sdk/ali-rds.git","svn_url":"https://github.com/ali-sdk/ali-rds","homepage":null,"size":63,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/12"},"html":{"href":"https://github.com/ali-sdk/ali-rds/pull/12"},"issue":{"href":"https://api.github.com/repos/ali-sdk/ali-rds/issues/12"},"comments":{"href":"https://api.github.com/repos/ali-sdk/ali-rds/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ali-sdk/ali-rds/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/ali-sdk/ali-rds/statuses/6d56924c99da9e27d5acd95cb6830829dbcdcd04"}}}}
{"actor":{"display_login":"fengmk2"}}