{"action":"created","issue":{"url":"https://api.github.com/repos/outr/scalarelational/issues/22","labels_url":"https://api.github.com/repos/outr/scalarelational/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/outr/scalarelational/issues/22/comments","events_url":"https://api.github.com/repos/outr/scalarelational/issues/22/events","html_url":"https://github.com/outr/scalarelational/issues/22","id":93338360,"number":22,"title":"Changing column size of Array[Byte]","user":{"login":"tindzk","id":196819,"avatar_url":"https://avatars.githubusercontent.com/u/196819?v=3","gravatar_id":"","url":"https://api.github.com/users/tindzk","html_url":"https://github.com/tindzk","followers_url":"https://api.github.com/users/tindzk/followers","following_url":"https://api.github.com/users/tindzk/following{/other_user}","gists_url":"https://api.github.com/users/tindzk/gists{/gist_id}","starred_url":"https://api.github.com/users/tindzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tindzk/subscriptions","organizations_url":"https://api.github.com/users/tindzk/orgs","repos_url":"https://api.github.com/users/tindzk/repos","events_url":"https://api.github.com/users/tindzk/events{/privacy}","received_events_url":"https://api.github.com/users/tindzk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-06T18:02:22Z","updated_at":"2015-07-07T19:46:34Z","closed_at":null,"body":"``Array[Byte]`` corresponds to a ``BINARY`` column of the size 1024. In certain situations it is necessary to specify a different size. I'm using the following workaround:\r\n\r\n```scala\r\nobject Page extends Table(\"Page\")(ds) {\r\n  implicit def myByteArray = new DataType[Array[Byte]] {\r\n    def sqlType(column: ColumnLike[_]) = \"BINARY(102400)\" // defaults to 1024\r\n    def toSQLType(column: ColumnLike[_], value: Array[Byte]) = value\r\n    def fromSQLType(column: ColumnLike[_], value: Any) = value.asInstanceOf[Array[Byte]]\r\n  }\r\n\r\n  // ...\r\n  val content = column[Array[Byte]](\"content\")(myByteArray, implicitly[Manifest[Array[Byte]]])\r\n}\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/outr/scalarelational/issues/comments/119315463","html_url":"https://github.com/outr/scalarelational/issues/22#issuecomment-119315463","issue_url":"https://api.github.com/repos/outr/scalarelational/issues/22","id":119315463,"user":{"login":"tindzk","id":196819,"avatar_url":"https://avatars.githubusercontent.com/u/196819?v=3","gravatar_id":"","url":"https://api.github.com/users/tindzk","html_url":"https://github.com/tindzk","followers_url":"https://api.github.com/users/tindzk/followers","following_url":"https://api.github.com/users/tindzk/following{/other_user}","gists_url":"https://api.github.com/users/tindzk/gists{/gist_id}","starred_url":"https://api.github.com/users/tindzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tindzk/subscriptions","organizations_url":"https://api.github.com/users/tindzk/orgs","repos_url":"https://api.github.com/users/tindzk/repos","events_url":"https://api.github.com/users/tindzk/events{/privacy}","received_events_url":"https://api.github.com/users/tindzk/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T19:46:34Z","updated_at":"2015-07-07T19:46:34Z","body":"I can do it, but let me first finish the two pending pull requests."}}