{"action":"created","comment":{"url":"https://api.github.com/repos/alxmsl/Connection/pulls/comments/47068345","id":47068345,"diff_hunk":"@@ -87,4 +87,44 @@ public function tbl($table) {\n         return pg_escape_identifier((string) $table);\n     }\n \n+    /**\n+     * Escape string[] values\n+     * @param array $array\n+     * @return string\n+     */\n+    public function arrstr(array $array) {\n+        return $this->str(sprintf('{\"%s\"}', implode('\",\"', $array)));","path":"source/Postgresql/QueryTemplate.php","position":null,"original_position":10,"commit_id":"3c5cc3949e6791a5bf6f876bd270b4105e88324f","original_commit_id":"8457f6f0f5ffe47bf16f4b64ff6732889d15f57f","user":{"login":"chapsuk","id":5525114,"avatar_url":"https://avatars.githubusercontent.com/u/5525114?v=3","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2015-12-09T09:37:05Z","updated_at":"2015-12-09T09:37:05Z","html_url":"https://github.com/alxmsl/Connection/pull/5#discussion_r47068345","pull_request_url":"https://api.github.com/repos/alxmsl/Connection/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/alxmsl/Connection/pulls/comments/47068345"},"html":{"href":"https://github.com/alxmsl/Connection/pull/5#discussion_r47068345"},"pull_request":{"href":"https://api.github.com/repos/alxmsl/Connection/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/alxmsl/Connection/pulls/5","id":53094704,"html_url":"https://github.com/alxmsl/Connection/pull/5","diff_url":"https://github.com/alxmsl/Connection/pull/5.diff","patch_url":"https://github.com/alxmsl/Connection/pull/5.patch","issue_url":"https://api.github.com/repos/alxmsl/Connection/issues/5","number":5,"state":"open","locked":false,"title":"Added array escape functions, with tests","user":{"login":"chapsuk","id":5525114,"avatar_url":"https://avatars.githubusercontent.com/u/5525114?v=3","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"body":"![image](https://cloud.githubusercontent.com/assets/5525114/11681536/7dca24f2-9e70-11e5-81e0-51187abda88f.png)\r\n","created_at":"2015-12-09T09:30:21Z","updated_at":"2015-12-09T09:37:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9c6cbeb07788cf9df9d5be6be7073b513d797b6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alxmsl/Connection/pulls/5/commits","review_comments_url":"https://api.github.com/repos/alxmsl/Connection/pulls/5/comments","review_comment_url":"https://api.github.com/repos/alxmsl/Connection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alxmsl/Connection/issues/5/comments","statuses_url":"https://api.github.com/repos/alxmsl/Connection/statuses/3c5cc3949e6791a5bf6f876bd270b4105e88324f","head":{"label":"chapsuk:escape_functions","ref":"escape_functions","sha":"3c5cc3949e6791a5bf6f876bd270b4105e88324f","user":{"login":"chapsuk","id":5525114,"avatar_url":"https://avatars.githubusercontent.com/u/5525114?v=3","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"repo":{"id":41721761,"name":"Connection","full_name":"chapsuk/Connection","owner":{"login":"chapsuk","id":5525114,"avatar_url":"https://avatars.githubusercontent.com/u/5525114?v=3","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chapsuk/Connection","description":"Base classes for storage connections (redis, postgres) on PHP","fork":true,"url":"https://api.github.com/repos/chapsuk/Connection","forks_url":"https://api.github.com/repos/chapsuk/Connection/forks","keys_url":"https://api.github.com/repos/chapsuk/Connection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chapsuk/Connection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chapsuk/Connection/teams","hooks_url":"https://api.github.com/repos/chapsuk/Connection/hooks","issue_events_url":"https://api.github.com/repos/chapsuk/Connection/issues/events{/number}","events_url":"https://api.github.com/repos/chapsuk/Connection/events","assignees_url":"https://api.github.com/repos/chapsuk/Connection/assignees{/user}","branches_url":"https://api.github.com/repos/chapsuk/Connection/branches{/branch}","tags_url":"https://api.github.com/repos/chapsuk/Connection/tags","blobs_url":"https://api.github.com/repos/chapsuk/Connection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chapsuk/Connection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chapsuk/Connection/git/refs{/sha}","trees_url":"https://api.github.com/repos/chapsuk/Connection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chapsuk/Connection/statuses/{sha}","languages_url":"https://api.github.com/repos/chapsuk/Connection/languages","stargazers_url":"https://api.github.com/repos/chapsuk/Connection/stargazers","contributors_url":"https://api.github.com/repos/chapsuk/Connection/contributors","subscribers_url":"https://api.github.com/repos/chapsuk/Connection/subscribers","subscription_url":"https://api.github.com/repos/chapsuk/Connection/subscription","commits_url":"https://api.github.com/repos/chapsuk/Connection/commits{/sha}","git_commits_url":"https://api.github.com/repos/chapsuk/Connection/git/commits{/sha}","comments_url":"https://api.github.com/repos/chapsuk/Connection/comments{/number}","issue_comment_url":"https://api.github.com/repos/chapsuk/Connection/issues/comments{/number}","contents_url":"https://api.github.com/repos/chapsuk/Connection/contents/{+path}","compare_url":"https://api.github.com/repos/chapsuk/Connection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chapsuk/Connection/merges","archive_url":"https://api.github.com/repos/chapsuk/Connection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chapsuk/Connection/downloads","issues_url":"https://api.github.com/repos/chapsuk/Connection/issues{/number}","pulls_url":"https://api.github.com/repos/chapsuk/Connection/pulls{/number}","milestones_url":"https://api.github.com/repos/chapsuk/Connection/milestones{/number}","notifications_url":"https://api.github.com/repos/chapsuk/Connection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chapsuk/Connection/labels{/name}","releases_url":"https://api.github.com/repos/chapsuk/Connection/releases{/id}","created_at":"2015-09-01T06:43:11Z","updated_at":"2015-09-01T06:43:12Z","pushed_at":"2015-12-09T09:36:51Z","git_url":"git://github.com/chapsuk/Connection.git","ssh_url":"git@github.com:chapsuk/Connection.git","clone_url":"https://github.com/chapsuk/Connection.git","svn_url":"https://github.com/chapsuk/Connection","homepage":null,"size":71,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"alxmsl:master","ref":"master","sha":"05c28b39246c57e9381c425b4555002e336a2dcf","user":{"login":"alxmsl","id":950057,"avatar_url":"https://avatars.githubusercontent.com/u/950057?v=3","gravatar_id":"","url":"https://api.github.com/users/alxmsl","html_url":"https://github.com/alxmsl","followers_url":"https://api.github.com/users/alxmsl/followers","following_url":"https://api.github.com/users/alxmsl/following{/other_user}","gists_url":"https://api.github.com/users/alxmsl/gists{/gist_id}","starred_url":"https://api.github.com/users/alxmsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxmsl/subscriptions","organizations_url":"https://api.github.com/users/alxmsl/orgs","repos_url":"https://api.github.com/users/alxmsl/repos","events_url":"https://api.github.com/users/alxmsl/events{/privacy}","received_events_url":"https://api.github.com/users/alxmsl/received_events","type":"User","site_admin":false},"repo":{"id":9202729,"name":"Connection","full_name":"alxmsl/Connection","owner":{"login":"alxmsl","id":950057,"avatar_url":"https://avatars.githubusercontent.com/u/950057?v=3","gravatar_id":"","url":"https://api.github.com/users/alxmsl","html_url":"https://github.com/alxmsl","followers_url":"https://api.github.com/users/alxmsl/followers","following_url":"https://api.github.com/users/alxmsl/following{/other_user}","gists_url":"https://api.github.com/users/alxmsl/gists{/gist_id}","starred_url":"https://api.github.com/users/alxmsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxmsl/subscriptions","organizations_url":"https://api.github.com/users/alxmsl/orgs","repos_url":"https://api.github.com/users/alxmsl/repos","events_url":"https://api.github.com/users/alxmsl/events{/privacy}","received_events_url":"https://api.github.com/users/alxmsl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alxmsl/Connection","description":"Base classes for storage connections (redis, postgres) on PHP","fork":false,"url":"https://api.github.com/repos/alxmsl/Connection","forks_url":"https://api.github.com/repos/alxmsl/Connection/forks","keys_url":"https://api.github.com/repos/alxmsl/Connection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alxmsl/Connection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alxmsl/Connection/teams","hooks_url":"https://api.github.com/repos/alxmsl/Connection/hooks","issue_events_url":"https://api.github.com/repos/alxmsl/Connection/issues/events{/number}","events_url":"https://api.github.com/repos/alxmsl/Connection/events","assignees_url":"https://api.github.com/repos/alxmsl/Connection/assignees{/user}","branches_url":"https://api.github.com/repos/alxmsl/Connection/branches{/branch}","tags_url":"https://api.github.com/repos/alxmsl/Connection/tags","blobs_url":"https://api.github.com/repos/alxmsl/Connection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alxmsl/Connection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alxmsl/Connection/git/refs{/sha}","trees_url":"https://api.github.com/repos/alxmsl/Connection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alxmsl/Connection/statuses/{sha}","languages_url":"https://api.github.com/repos/alxmsl/Connection/languages","stargazers_url":"https://api.github.com/repos/alxmsl/Connection/stargazers","contributors_url":"https://api.github.com/repos/alxmsl/Connection/contributors","subscribers_url":"https://api.github.com/repos/alxmsl/Connection/subscribers","subscription_url":"https://api.github.com/repos/alxmsl/Connection/subscription","commits_url":"https://api.github.com/repos/alxmsl/Connection/commits{/sha}","git_commits_url":"https://api.github.com/repos/alxmsl/Connection/git/commits{/sha}","comments_url":"https://api.github.com/repos/alxmsl/Connection/comments{/number}","issue_comment_url":"https://api.github.com/repos/alxmsl/Connection/issues/comments{/number}","contents_url":"https://api.github.com/repos/alxmsl/Connection/contents/{+path}","compare_url":"https://api.github.com/repos/alxmsl/Connection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alxmsl/Connection/merges","archive_url":"https://api.github.com/repos/alxmsl/Connection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alxmsl/Connection/downloads","issues_url":"https://api.github.com/repos/alxmsl/Connection/issues{/number}","pulls_url":"https://api.github.com/repos/alxmsl/Connection/pulls{/number}","milestones_url":"https://api.github.com/repos/alxmsl/Connection/milestones{/number}","notifications_url":"https://api.github.com/repos/alxmsl/Connection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alxmsl/Connection/labels{/name}","releases_url":"https://api.github.com/repos/alxmsl/Connection/releases{/id}","created_at":"2013-04-03T19:12:43Z","updated_at":"2015-03-08T23:20:48Z","pushed_at":"2015-12-09T09:36:52Z","git_url":"git://github.com/alxmsl/Connection.git","ssh_url":"git@github.com:alxmsl/Connection.git","clone_url":"https://github.com/alxmsl/Connection.git","svn_url":"https://github.com/alxmsl/Connection","homepage":null,"size":61,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alxmsl/Connection/pulls/5"},"html":{"href":"https://github.com/alxmsl/Connection/pull/5"},"issue":{"href":"https://api.github.com/repos/alxmsl/Connection/issues/5"},"comments":{"href":"https://api.github.com/repos/alxmsl/Connection/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/alxmsl/Connection/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/alxmsl/Connection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alxmsl/Connection/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/alxmsl/Connection/statuses/3c5cc3949e6791a5bf6f876bd270b4105e88324f"}}}}