{"action":"opened","issue":{"url":"https://api.github.com/repos/scalikejdbc/scalikejdbc/issues/540","repository_url":"https://api.github.com/repos/scalikejdbc/scalikejdbc","labels_url":"https://api.github.com/repos/scalikejdbc/scalikejdbc/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/scalikejdbc/scalikejdbc/issues/540/comments","events_url":"https://api.github.com/repos/scalikejdbc/scalikejdbc/issues/540/events","html_url":"https://github.com/scalikejdbc/scalikejdbc/issues/540","id":163344047,"number":540,"title":"→ (-> unicode symbol) support in \"insert ... namedValues\"","user":{"login":"vratushnyi","id":2714038,"avatar_url":"https://avatars.githubusercontent.com/u/2714038?v=3","gravatar_id":"","url":"https://api.github.com/users/vratushnyi","html_url":"https://github.com/vratushnyi","followers_url":"https://api.github.com/users/vratushnyi/followers","following_url":"https://api.github.com/users/vratushnyi/following{/other_user}","gists_url":"https://api.github.com/users/vratushnyi/gists{/gist_id}","starred_url":"https://api.github.com/users/vratushnyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vratushnyi/subscriptions","organizations_url":"https://api.github.com/users/vratushnyi/orgs","repos_url":"https://api.github.com/users/vratushnyi/repos","events_url":"https://api.github.com/users/vratushnyi/events{/privacy}","received_events_url":"https://api.github.com/users/vratushnyi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-01T08:23:05Z","updated_at":"2016-07-01T08:23:05Z","closed_at":null,"body":"The following code\r\n```scala\r\ninsert.into(Campaign).namedValues(\r\n  c.name → campaign.name\r\n)\r\n```\r\nfails compilation\r\n```\r\n[error] ...Campaign.scala:63: overloaded method value namedValues with alternatives:\r\n[error]   (columnsAndValues: Map[scalikejdbc.SQLSyntax,scalikejdbc.ParameterBinder])scalikejdbc.InsertSQLBuilder <and>\r\n[error]   (columnsAndValues: (scalikejdbc.SQLSyntax, scalikejdbc.ParameterBinder)*)scalikejdbc.InsertSQLBuilder\r\n[error]  cannot be applied to ((scalikejdbc.SQLSyntax, String))\r\n[error]         insert.into(Campaign).namedValues(\r\n[error]                               ^\r\n[error] one error found\r\n```\r\nWorkaround:\r\n```scala\r\nimplicit class SqlSyntaxOpt(val s: SQLSyntax) extends AnyVal {\r\n  def → [A](value: A)(implicit ev: ParameterBinderFactory[A]): (SQLSyntax, ParameterBinder) = (s, ev(value))\r\n  def → (value: ParameterBinder): (SQLSyntax, ParameterBinder) = (s, value)\r\n}\r\n```\r\nCan you please add support for → unicode character?"}}
{"actor":{"display_login":"vratushnyi"}}