{"action":"created","comment":{"url":"https://api.github.com/repos/gocql/gocql/pulls/comments/70871647","id":70871647,"diff_hunk":"@@ -761,6 +761,32 @@ func matchSliceMap(t *testing.T, sliceMap []map[string]interface{}, testMap map[\n \t}\n }\n \n+func TestSmallInt(t *testing.T) {\n+\tif *flagProto < protoVersion4 {\n+\t\tt.Skip(\"smallint is only supported in cassandra 2.2+\")\n+\t}\n+\tsession := createSession(t)\n+\tdefer session.Close()\n+\tif err := createTable(session, `CREATE TABLE gocql_test.smallint_table (\n+\t\t\ttestsmallint   smallint,","path":"cassandra_test.go","position":11,"original_position":11,"commit_id":"1e5932655f17fe0eebe16f7d6e74d6f3dc579161","original_commit_id":"1e5932655f17fe0eebe16f7d6e74d6f3dc579161","user":{"login":"Zariel","id":2213,"avatar_url":"https://avatars.githubusercontent.com/u/2213?v=3","gravatar_id":"","url":"https://api.github.com/users/Zariel","html_url":"https://github.com/Zariel","followers_url":"https://api.github.com/users/Zariel/followers","following_url":"https://api.github.com/users/Zariel/following{/other_user}","gists_url":"https://api.github.com/users/Zariel/gists{/gist_id}","starred_url":"https://api.github.com/users/Zariel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zariel/subscriptions","organizations_url":"https://api.github.com/users/Zariel/orgs","repos_url":"https://api.github.com/users/Zariel/repos","events_url":"https://api.github.com/users/Zariel/events{/privacy}","received_events_url":"https://api.github.com/users/Zariel/received_events","type":"User","site_admin":false},"body":"missing a primary key in the table","created_at":"2016-07-14T19:52:15Z","updated_at":"2016-07-14T19:52:16Z","html_url":"https://github.com/gocql/gocql/pull/752#discussion_r70871647","pull_request_url":"https://api.github.com/repos/gocql/gocql/pulls/752","_links":{"self":{"href":"https://api.github.com/repos/gocql/gocql/pulls/comments/70871647"},"html":{"href":"https://github.com/gocql/gocql/pull/752#discussion_r70871647"},"pull_request":{"href":"https://api.github.com/repos/gocql/gocql/pulls/752"}}},"pull_request":{"url":"https://api.github.com/repos/gocql/gocql/pulls/752","id":77498392,"html_url":"https://github.com/gocql/gocql/pull/752","diff_url":"https://github.com/gocql/gocql/pull/752.diff","patch_url":"https://github.com/gocql/gocql/pull/752.patch","issue_url":"https://api.github.com/repos/gocql/gocql/issues/752","number":752,"state":"open","locked":false,"title":"Add reflection support for smallint","user":{"login":"esbie","id":41829,"avatar_url":"https://avatars.githubusercontent.com/u/41829?v=3","gravatar_id":"","url":"https://api.github.com/users/esbie","html_url":"https://github.com/esbie","followers_url":"https://api.github.com/users/esbie/followers","following_url":"https://api.github.com/users/esbie/following{/other_user}","gists_url":"https://api.github.com/users/esbie/gists{/gist_id}","starred_url":"https://api.github.com/users/esbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esbie/subscriptions","organizations_url":"https://api.github.com/users/esbie/orgs","repos_url":"https://api.github.com/users/esbie/repos","events_url":"https://api.github.com/users/esbie/events{/privacy}","received_events_url":"https://api.github.com/users/esbie/received_events","type":"User","site_admin":false},"body":"Problem:\r\n\r\nWhen using `SliceMap` with a schema containing a `smallint`, gocql panics\r\n```\r\nevents | 2016/07/13 23:58:25 http: panic serving 192.168.99.1:56947: reflect: New(nil)\r\nevents | goroutine 43 [running]:\r\nevents | net/http.(*conn).serve.func1(0xc8202b5880)\r\nevents | \t/usr/local/go/src/net/http/server.go:1389 +0xc1\r\nevents | panic(0x857e40, 0xc8202b6e80)\r\nevents | \t/usr/local/go/src/runtime/panic.go:443 +0x4e9\r\nevents | reflect.New(0x0, 0x0, 0x0, 0x0, 0x0)\r\nevents | \t/usr/local/go/src/reflect/value.go:2119 +0x85\r\nevents | github.com/buoyantio/helium/vendor/github.com/gocql/gocql.NativeType.New(0x7f9d00000003, 0x13, 0xc820145680, 0x29, 0x0, 0x0)\r\nevents | \t/go/src/github.com/buoyantio/helium/vendor/github.com/gocql/gocql/marshal.go:1788 +0xd6\r\nevents | github.com/buoyantio/helium/vendor/github.com/gocql/gocql.(*NativeType).New(0xc820182580, 0x0, 0x0)\r\nevents | \t<autogenerated>:206 +0xa2\r\nevents | github.com/buoyantio/helium/vendor/github.com/gocql/gocql.(*Iter).RowData(0xc820069320, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\nevents | \t/go/src/github.com/buoyantio/helium/vendor/github.com/gocql/gocql/helpers.go:214 +0x6eb\r\nevents | github.com/buoyantio/helium/vendor/github.com/gocql/gocql.(*Iter).SliceMap(0xc820069320, 0x0, 0x0, 0x0, 0x0, 0x0)\r\nevents | \t/go/src/github.com/buoyantio/helium/vendor/github.com/gocql/gocql/helpers.go:234 +0x9e\r\nevents | main.(*EventService).GetTrace(0xc820124bc0, 0x7f9d2c47d2a0, 0xc8202ba360, 0xc8202b6b90, 0xc8202b2c40, 0x0, 0x0)\r\nevents | \t/go/src/github.com/buoyantio/helium/service/events.go:43 +0x3a1\r\n```\r\n\r\nSolution:\r\n\r\nAdd `smallint` as a reflection type in `goType`","created_at":"2016-07-14T17:59:49Z","updated_at":"2016-07-14T19:52:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c046ebf8b4b5a1bb5cf317e4a19f904e48fa867f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gocql/gocql/pulls/752/commits","review_comments_url":"https://api.github.com/repos/gocql/gocql/pulls/752/comments","review_comment_url":"https://api.github.com/repos/gocql/gocql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gocql/gocql/issues/752/comments","statuses_url":"https://api.github.com/repos/gocql/gocql/statuses/1e5932655f17fe0eebe16f7d6e74d6f3dc579161","head":{"label":"esbie:master","ref":"master","sha":"1e5932655f17fe0eebe16f7d6e74d6f3dc579161","user":{"login":"esbie","id":41829,"avatar_url":"https://avatars.githubusercontent.com/u/41829?v=3","gravatar_id":"","url":"https://api.github.com/users/esbie","html_url":"https://github.com/esbie","followers_url":"https://api.github.com/users/esbie/followers","following_url":"https://api.github.com/users/esbie/following{/other_user}","gists_url":"https://api.github.com/users/esbie/gists{/gist_id}","starred_url":"https://api.github.com/users/esbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esbie/subscriptions","organizations_url":"https://api.github.com/users/esbie/orgs","repos_url":"https://api.github.com/users/esbie/repos","events_url":"https://api.github.com/users/esbie/events{/privacy}","received_events_url":"https://api.github.com/users/esbie/received_events","type":"User","site_admin":false},"repo":{"id":63355638,"name":"gocql","full_name":"esbie/gocql","owner":{"login":"esbie","id":41829,"avatar_url":"https://avatars.githubusercontent.com/u/41829?v=3","gravatar_id":"","url":"https://api.github.com/users/esbie","html_url":"https://github.com/esbie","followers_url":"https://api.github.com/users/esbie/followers","following_url":"https://api.github.com/users/esbie/following{/other_user}","gists_url":"https://api.github.com/users/esbie/gists{/gist_id}","starred_url":"https://api.github.com/users/esbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esbie/subscriptions","organizations_url":"https://api.github.com/users/esbie/orgs","repos_url":"https://api.github.com/users/esbie/repos","events_url":"https://api.github.com/users/esbie/events{/privacy}","received_events_url":"https://api.github.com/users/esbie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esbie/gocql","description":"Package gocql implements a fast and robust Cassandra client for the Go programming language.","fork":true,"url":"https://api.github.com/repos/esbie/gocql","forks_url":"https://api.github.com/repos/esbie/gocql/forks","keys_url":"https://api.github.com/repos/esbie/gocql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esbie/gocql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esbie/gocql/teams","hooks_url":"https://api.github.com/repos/esbie/gocql/hooks","issue_events_url":"https://api.github.com/repos/esbie/gocql/issues/events{/number}","events_url":"https://api.github.com/repos/esbie/gocql/events","assignees_url":"https://api.github.com/repos/esbie/gocql/assignees{/user}","branches_url":"https://api.github.com/repos/esbie/gocql/branches{/branch}","tags_url":"https://api.github.com/repos/esbie/gocql/tags","blobs_url":"https://api.github.com/repos/esbie/gocql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esbie/gocql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esbie/gocql/git/refs{/sha}","trees_url":"https://api.github.com/repos/esbie/gocql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esbie/gocql/statuses/{sha}","languages_url":"https://api.github.com/repos/esbie/gocql/languages","stargazers_url":"https://api.github.com/repos/esbie/gocql/stargazers","contributors_url":"https://api.github.com/repos/esbie/gocql/contributors","subscribers_url":"https://api.github.com/repos/esbie/gocql/subscribers","subscription_url":"https://api.github.com/repos/esbie/gocql/subscription","commits_url":"https://api.github.com/repos/esbie/gocql/commits{/sha}","git_commits_url":"https://api.github.com/repos/esbie/gocql/git/commits{/sha}","comments_url":"https://api.github.com/repos/esbie/gocql/comments{/number}","issue_comment_url":"https://api.github.com/repos/esbie/gocql/issues/comments{/number}","contents_url":"https://api.github.com/repos/esbie/gocql/contents/{+path}","compare_url":"https://api.github.com/repos/esbie/gocql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esbie/gocql/merges","archive_url":"https://api.github.com/repos/esbie/gocql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esbie/gocql/downloads","issues_url":"https://api.github.com/repos/esbie/gocql/issues{/number}","pulls_url":"https://api.github.com/repos/esbie/gocql/pulls{/number}","milestones_url":"https://api.github.com/repos/esbie/gocql/milestones{/number}","notifications_url":"https://api.github.com/repos/esbie/gocql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esbie/gocql/labels{/name}","releases_url":"https://api.github.com/repos/esbie/gocql/releases{/id}","deployments_url":"https://api.github.com/repos/esbie/gocql/deployments","created_at":"2016-07-14T17:20:01Z","updated_at":"2016-07-14T17:20:04Z","pushed_at":"2016-07-14T19:10:50Z","git_url":"git://github.com/esbie/gocql.git","ssh_url":"git@github.com:esbie/gocql.git","clone_url":"https://github.com/esbie/gocql.git","svn_url":"https://github.com/esbie/gocql","homepage":"http://gocql.github.io/","size":1996,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"gocql:master","ref":"master","sha":"9924437647a7cd58f0c79c07d7d5ecf3cc8aa1fa","user":{"login":"gocql","id":6570216,"avatar_url":"https://avatars.githubusercontent.com/u/6570216?v=3","gravatar_id":"","url":"https://api.github.com/users/gocql","html_url":"https://github.com/gocql","followers_url":"https://api.github.com/users/gocql/followers","following_url":"https://api.github.com/users/gocql/following{/other_user}","gists_url":"https://api.github.com/users/gocql/gists{/gist_id}","starred_url":"https://api.github.com/users/gocql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocql/subscriptions","organizations_url":"https://api.github.com/users/gocql/orgs","repos_url":"https://api.github.com/users/gocql/repos","events_url":"https://api.github.com/users/gocql/events{/privacy}","received_events_url":"https://api.github.com/users/gocql/received_events","type":"Organization","site_admin":false},"repo":{"id":5561238,"name":"gocql","full_name":"gocql/gocql","owner":{"login":"gocql","id":6570216,"avatar_url":"https://avatars.githubusercontent.com/u/6570216?v=3","gravatar_id":"","url":"https://api.github.com/users/gocql","html_url":"https://github.com/gocql","followers_url":"https://api.github.com/users/gocql/followers","following_url":"https://api.github.com/users/gocql/following{/other_user}","gists_url":"https://api.github.com/users/gocql/gists{/gist_id}","starred_url":"https://api.github.com/users/gocql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gocql/subscriptions","organizations_url":"https://api.github.com/users/gocql/orgs","repos_url":"https://api.github.com/users/gocql/repos","events_url":"https://api.github.com/users/gocql/events{/privacy}","received_events_url":"https://api.github.com/users/gocql/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gocql/gocql","description":"Package gocql implements a fast and robust Cassandra client for the Go programming language.","fork":false,"url":"https://api.github.com/repos/gocql/gocql","forks_url":"https://api.github.com/repos/gocql/gocql/forks","keys_url":"https://api.github.com/repos/gocql/gocql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gocql/gocql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gocql/gocql/teams","hooks_url":"https://api.github.com/repos/gocql/gocql/hooks","issue_events_url":"https://api.github.com/repos/gocql/gocql/issues/events{/number}","events_url":"https://api.github.com/repos/gocql/gocql/events","assignees_url":"https://api.github.com/repos/gocql/gocql/assignees{/user}","branches_url":"https://api.github.com/repos/gocql/gocql/branches{/branch}","tags_url":"https://api.github.com/repos/gocql/gocql/tags","blobs_url":"https://api.github.com/repos/gocql/gocql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gocql/gocql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gocql/gocql/git/refs{/sha}","trees_url":"https://api.github.com/repos/gocql/gocql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gocql/gocql/statuses/{sha}","languages_url":"https://api.github.com/repos/gocql/gocql/languages","stargazers_url":"https://api.github.com/repos/gocql/gocql/stargazers","contributors_url":"https://api.github.com/repos/gocql/gocql/contributors","subscribers_url":"https://api.github.com/repos/gocql/gocql/subscribers","subscription_url":"https://api.github.com/repos/gocql/gocql/subscription","commits_url":"https://api.github.com/repos/gocql/gocql/commits{/sha}","git_commits_url":"https://api.github.com/repos/gocql/gocql/git/commits{/sha}","comments_url":"https://api.github.com/repos/gocql/gocql/comments{/number}","issue_comment_url":"https://api.github.com/repos/gocql/gocql/issues/comments{/number}","contents_url":"https://api.github.com/repos/gocql/gocql/contents/{+path}","compare_url":"https://api.github.com/repos/gocql/gocql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gocql/gocql/merges","archive_url":"https://api.github.com/repos/gocql/gocql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gocql/gocql/downloads","issues_url":"https://api.github.com/repos/gocql/gocql/issues{/number}","pulls_url":"https://api.github.com/repos/gocql/gocql/pulls{/number}","milestones_url":"https://api.github.com/repos/gocql/gocql/milestones{/number}","notifications_url":"https://api.github.com/repos/gocql/gocql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gocql/gocql/labels{/name}","releases_url":"https://api.github.com/repos/gocql/gocql/releases{/id}","deployments_url":"https://api.github.com/repos/gocql/gocql/deployments","created_at":"2012-08-26T15:42:42Z","updated_at":"2016-07-12T22:26:49Z","pushed_at":"2016-07-14T19:10:51Z","git_url":"git://github.com/gocql/gocql.git","ssh_url":"git@github.com:gocql/gocql.git","clone_url":"https://github.com/gocql/gocql.git","svn_url":"https://github.com/gocql/gocql","homepage":"http://gocql.github.io/","size":2629,"stargazers_count":726,"watchers_count":726,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":212,"mirror_url":null,"open_issues_count":59,"forks":212,"open_issues":59,"watchers":726,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gocql/gocql/pulls/752"},"html":{"href":"https://github.com/gocql/gocql/pull/752"},"issue":{"href":"https://api.github.com/repos/gocql/gocql/issues/752"},"comments":{"href":"https://api.github.com/repos/gocql/gocql/issues/752/comments"},"review_comments":{"href":"https://api.github.com/repos/gocql/gocql/pulls/752/comments"},"review_comment":{"href":"https://api.github.com/repos/gocql/gocql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gocql/gocql/pulls/752/commits"},"statuses":{"href":"https://api.github.com/repos/gocql/gocql/statuses/1e5932655f17fe0eebe16f7d6e74d6f3dc579161"}}}}
{"actor":{"display_login":"Zariel"}}