{"action":"created","comment":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments/236706851","pull_request_review_id":178836106,"id":236706851,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjcwNjg1MQ==","diff_hunk":"@@ -198,17 +198,17 @@ function testConnectionFailure() {\n \n }\n \n-function getJsonConversionResult(table|error tableOrError) returns json {\n+function getJsonConversionResult(table<record {}>|error tableOrError) returns json {\n     json retVal = {};\n-    if (tableOrError is table) {\n-        var jsonConversionResult = <json>tableOrError;\n+    if (tableOrError is table<record {}>) {\n+        var jsonConversionResult = json.create(tableOrError);\n         if (jsonConversionResult is json) {\n             retVal = jsonConversionResult;\n         } else if (jsonConversionResult is error) {\n-            retVal = {\"Error\" : <string>jsonConversionResult.detail().message};\n+            retVal = {\"Error\" : string.create(jsonConversionResult.detail().message)};","path":"tests/ballerina-unit-test/src/test/resources/test-src/jdbc/sql_connector_init_test.bal","position":15,"original_position":15,"commit_id":"586edc048f04758f4af668b07683715122c8f54d","original_commit_id":"586edc048f04758f4af668b07683715122c8f54d","user":{"login":"VijithaEkanayake","id":5285626,"node_id":"MDQ6VXNlcjUyODU2MjY=","avatar_url":"https://avatars1.githubusercontent.com/u/5285626?v=4","gravatar_id":"","url":"https://api.github.com/users/VijithaEkanayake","html_url":"https://github.com/VijithaEkanayake","followers_url":"https://api.github.com/users/VijithaEkanayake/followers","following_url":"https://api.github.com/users/VijithaEkanayake/following{/other_user}","gists_url":"https://api.github.com/users/VijithaEkanayake/gists{/gist_id}","starred_url":"https://api.github.com/users/VijithaEkanayake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VijithaEkanayake/subscriptions","organizations_url":"https://api.github.com/users/VijithaEkanayake/orgs","repos_url":"https://api.github.com/users/VijithaEkanayake/repos","events_url":"https://api.github.com/users/VijithaEkanayake/events{/privacy}","received_events_url":"https://api.github.com/users/VijithaEkanayake/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n            retVal = { \"Error\" : string.create(jsonConversionResult.detail().message) };\r\n```","created_at":"2018-11-27T15:13:35Z","updated_at":"2018-11-27T15:13:36Z","html_url":"https://github.com/ballerina-platform/ballerina-lang/pull/11953#discussion_r236706851","pull_request_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11953","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments/236706851"},"html":{"href":"https://github.com/ballerina-platform/ballerina-lang/pull/11953#discussion_r236706851"},"pull_request":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11953"}}},"pull_request":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11953","id":233942732,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzOTQyNzMy","html_url":"https://github.com/ballerina-platform/ballerina-lang/pull/11953","diff_url":"https://github.com/ballerina-platform/ballerina-lang/pull/11953.diff","patch_url":"https://github.com/ballerina-platform/ballerina-lang/pull/11953.patch","issue_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11953","number":11953,"state":"open","locked":false,"title":"Fix SQL connector init test syntax","user":{"login":"Manuri","id":1335271,"node_id":"MDQ6VXNlcjEzMzUyNzE=","avatar_url":"https://avatars0.githubusercontent.com/u/1335271?v=4","gravatar_id":"","url":"https://api.github.com/users/Manuri","html_url":"https://github.com/Manuri","followers_url":"https://api.github.com/users/Manuri/followers","following_url":"https://api.github.com/users/Manuri/following{/other_user}","gists_url":"https://api.github.com/users/Manuri/gists{/gist_id}","starred_url":"https://api.github.com/users/Manuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manuri/subscriptions","organizations_url":"https://api.github.com/users/Manuri/orgs","repos_url":"https://api.github.com/users/Manuri/repos","events_url":"https://api.github.com/users/Manuri/events{/privacy}","received_events_url":"https://api.github.com/users/Manuri/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n$Subject","created_at":"2018-11-27T14:59:12Z","updated_at":"2018-11-27T15:13:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d0306c8761bda5fd7dd182cd6a2a0bdd00aa85d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11953/commits","review_comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11953/comments","review_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11953/comments","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/586edc048f04758f4af668b07683715122c8f54d","head":{"label":"Manuri:df_endpoint_change","ref":"df_endpoint_change","sha":"586edc048f04758f4af668b07683715122c8f54d","user":{"login":"Manuri","id":1335271,"node_id":"MDQ6VXNlcjEzMzUyNzE=","avatar_url":"https://avatars0.githubusercontent.com/u/1335271?v=4","gravatar_id":"","url":"https://api.github.com/users/Manuri","html_url":"https://github.com/Manuri","followers_url":"https://api.github.com/users/Manuri/followers","following_url":"https://api.github.com/users/Manuri/following{/other_user}","gists_url":"https://api.github.com/users/Manuri/gists{/gist_id}","starred_url":"https://api.github.com/users/Manuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manuri/subscriptions","organizations_url":"https://api.github.com/users/Manuri/orgs","repos_url":"https://api.github.com/users/Manuri/repos","events_url":"https://api.github.com/users/Manuri/events{/privacy}","received_events_url":"https://api.github.com/users/Manuri/received_events","type":"User","site_admin":false},"repo":{"id":83290408,"node_id":"MDEwOlJlcG9zaXRvcnk4MzI5MDQwOA==","name":"ballerina","full_name":"Manuri/ballerina","private":false,"owner":{"login":"Manuri","id":1335271,"node_id":"MDQ6VXNlcjEzMzUyNzE=","avatar_url":"https://avatars0.githubusercontent.com/u/1335271?v=4","gravatar_id":"","url":"https://api.github.com/users/Manuri","html_url":"https://github.com/Manuri","followers_url":"https://api.github.com/users/Manuri/followers","following_url":"https://api.github.com/users/Manuri/following{/other_user}","gists_url":"https://api.github.com/users/Manuri/gists{/gist_id}","starred_url":"https://api.github.com/users/Manuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Manuri/subscriptions","organizations_url":"https://api.github.com/users/Manuri/orgs","repos_url":"https://api.github.com/users/Manuri/repos","events_url":"https://api.github.com/users/Manuri/events{/privacy}","received_events_url":"https://api.github.com/users/Manuri/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Manuri/ballerina","description":"Ballerina is a new programming language for integration built on a sequence diagram metaphor.","fork":true,"url":"https://api.github.com/repos/Manuri/ballerina","forks_url":"https://api.github.com/repos/Manuri/ballerina/forks","keys_url":"https://api.github.com/repos/Manuri/ballerina/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Manuri/ballerina/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Manuri/ballerina/teams","hooks_url":"https://api.github.com/repos/Manuri/ballerina/hooks","issue_events_url":"https://api.github.com/repos/Manuri/ballerina/issues/events{/number}","events_url":"https://api.github.com/repos/Manuri/ballerina/events","assignees_url":"https://api.github.com/repos/Manuri/ballerina/assignees{/user}","branches_url":"https://api.github.com/repos/Manuri/ballerina/branches{/branch}","tags_url":"https://api.github.com/repos/Manuri/ballerina/tags","blobs_url":"https://api.github.com/repos/Manuri/ballerina/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Manuri/ballerina/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Manuri/ballerina/git/refs{/sha}","trees_url":"https://api.github.com/repos/Manuri/ballerina/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Manuri/ballerina/statuses/{sha}","languages_url":"https://api.github.com/repos/Manuri/ballerina/languages","stargazers_url":"https://api.github.com/repos/Manuri/ballerina/stargazers","contributors_url":"https://api.github.com/repos/Manuri/ballerina/contributors","subscribers_url":"https://api.github.com/repos/Manuri/ballerina/subscribers","subscription_url":"https://api.github.com/repos/Manuri/ballerina/subscription","commits_url":"https://api.github.com/repos/Manuri/ballerina/commits{/sha}","git_commits_url":"https://api.github.com/repos/Manuri/ballerina/git/commits{/sha}","comments_url":"https://api.github.com/repos/Manuri/ballerina/comments{/number}","issue_comment_url":"https://api.github.com/repos/Manuri/ballerina/issues/comments{/number}","contents_url":"https://api.github.com/repos/Manuri/ballerina/contents/{+path}","compare_url":"https://api.github.com/repos/Manuri/ballerina/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Manuri/ballerina/merges","archive_url":"https://api.github.com/repos/Manuri/ballerina/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Manuri/ballerina/downloads","issues_url":"https://api.github.com/repos/Manuri/ballerina/issues{/number}","pulls_url":"https://api.github.com/repos/Manuri/ballerina/pulls{/number}","milestones_url":"https://api.github.com/repos/Manuri/ballerina/milestones{/number}","notifications_url":"https://api.github.com/repos/Manuri/ballerina/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Manuri/ballerina/labels{/name}","releases_url":"https://api.github.com/repos/Manuri/ballerina/releases{/id}","deployments_url":"https://api.github.com/repos/Manuri/ballerina/deployments","created_at":"2017-02-27T09:08:36Z","updated_at":"2018-04-04T04:15:47Z","pushed_at":"2018-11-27T15:04:34Z","git_url":"git://github.com/Manuri/ballerina.git","ssh_url":"git@github.com:Manuri/ballerina.git","clone_url":"https://github.com/Manuri/ballerina.git","svn_url":"https://github.com/Manuri/ballerina","homepage":"","size":283473,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ballerina-platform:df_endpoint_change","ref":"df_endpoint_change","sha":"4268a76603b65276c4106fde4139c7a0ccde6317","user":{"login":"ballerina-platform","id":34733518,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzMzNTE4","avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"repo":{"id":73930305,"node_id":"MDEwOlJlcG9zaXRvcnk3MzkzMDMwNQ==","name":"ballerina-lang","full_name":"ballerina-platform/ballerina-lang","private":false,"owner":{"login":"ballerina-platform","id":34733518,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NzMzNTE4","avatar_url":"https://avatars2.githubusercontent.com/u/34733518?v=4","gravatar_id":"","url":"https://api.github.com/users/ballerina-platform","html_url":"https://github.com/ballerina-platform","followers_url":"https://api.github.com/users/ballerina-platform/followers","following_url":"https://api.github.com/users/ballerina-platform/following{/other_user}","gists_url":"https://api.github.com/users/ballerina-platform/gists{/gist_id}","starred_url":"https://api.github.com/users/ballerina-platform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ballerina-platform/subscriptions","organizations_url":"https://api.github.com/users/ballerina-platform/orgs","repos_url":"https://api.github.com/users/ballerina-platform/repos","events_url":"https://api.github.com/users/ballerina-platform/events{/privacy}","received_events_url":"https://api.github.com/users/ballerina-platform/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ballerina-platform/ballerina-lang","description":"Ballerina is a compiled, transactional, statically and strongly typed programming language with textual and graphical syntaxes.","fork":false,"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang","forks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/forks","keys_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/teams","hooks_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/hooks","issue_events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/events{/number}","events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/events","assignees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/assignees{/user}","branches_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/branches{/branch}","tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/tags","blobs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/refs{/sha}","trees_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/{sha}","languages_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/languages","stargazers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/stargazers","contributors_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contributors","subscribers_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscribers","subscription_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/subscription","commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/commits{/sha}","git_commits_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/git/commits{/sha}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/comments{/number}","issue_comment_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/comments{/number}","contents_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/contents/{+path}","compare_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/merges","archive_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/downloads","issues_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues{/number}","pulls_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls{/number}","milestones_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/milestones{/number}","notifications_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/labels{/name}","releases_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/releases{/id}","deployments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/deployments","created_at":"2016-11-16T14:58:44Z","updated_at":"2018-11-27T12:32:19Z","pushed_at":"2018-11-27T15:08:15Z","git_url":"git://github.com/ballerina-platform/ballerina-lang.git","ssh_url":"git@github.com:ballerina-platform/ballerina-lang.git","clone_url":"https://github.com/ballerina-platform/ballerina-lang.git","svn_url":"https://github.com/ballerina-platform/ballerina-lang","homepage":"","size":286969,"stargazers_count":1508,"watchers_count":1508,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":410,"mirror_url":null,"archived":false,"open_issues_count":649,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":410,"open_issues":649,"watchers":1508,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11953"},"html":{"href":"https://github.com/ballerina-platform/ballerina-lang/pull/11953"},"issue":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11953"},"comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/11953/comments"},"review_comments":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11953/comments"},"review_comment":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/pulls/11953/commits"},"statuses":{"href":"https://api.github.com/repos/ballerina-platform/ballerina-lang/statuses/586edc048f04758f4af668b07683715122c8f54d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"VijithaEkanayake"}}