{"action":"created","comment":{"url":"https://api.github.com/repos/playframework/anorm/pulls/comments/69495537","id":69495537,"diff_hunk":"@@ -77,7 +80,8 @@ private[anorm] object TokenizedStatement {\n       }\n     } else parts.headOption match {\n       case Some(part) =>\n-        val it = new StringTokenizer(part, \"%\", true).asScala.map(_.toString)\n+        //val it = new StringTokenizer(part, \"%\", true).asScala.map(_.toString)","path":"tokenizer/src/main/scala/anorm/TokenizedStatement.scala","position":28,"original_position":28,"commit_id":"4a4a8771ee6799c1a07276c3714b481a052b070c","original_commit_id":"4a4a8771ee6799c1a07276c3714b481a052b070c","user":{"login":"richdougherty","id":14750,"avatar_url":"https://avatars.githubusercontent.com/u/14750?v=3","gravatar_id":"","url":"https://api.github.com/users/richdougherty","html_url":"https://github.com/richdougherty","followers_url":"https://api.github.com/users/richdougherty/followers","following_url":"https://api.github.com/users/richdougherty/following{/other_user}","gists_url":"https://api.github.com/users/richdougherty/gists{/gist_id}","starred_url":"https://api.github.com/users/richdougherty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richdougherty/subscriptions","organizations_url":"https://api.github.com/users/richdougherty/orgs","repos_url":"https://api.github.com/users/richdougherty/repos","events_url":"https://api.github.com/users/richdougherty/events{/privacy}","received_events_url":"https://api.github.com/users/richdougherty/received_events","type":"User","site_admin":false},"body":"Perhaps delete this comment as well. The code is still in Git if you need it again in the future.","created_at":"2016-07-04T23:23:12Z","updated_at":"2016-07-04T23:23:12Z","html_url":"https://github.com/playframework/anorm/pull/106#discussion_r69495537","pull_request_url":"https://api.github.com/repos/playframework/anorm/pulls/106","_links":{"self":{"href":"https://api.github.com/repos/playframework/anorm/pulls/comments/69495537"},"html":{"href":"https://github.com/playframework/anorm/pull/106#discussion_r69495537"},"pull_request":{"href":"https://api.github.com/repos/playframework/anorm/pulls/106"}}},"pull_request":{"url":"https://api.github.com/repos/playframework/anorm/pulls/106","id":74256924,"html_url":"https://github.com/playframework/anorm/pull/106","diff_url":"https://github.com/playframework/anorm/pull/106.diff","patch_url":"https://github.com/playframework/anorm/pull/106.patch","issue_url":"https://api.github.com/repos/playframework/anorm/issues/106","number":106,"state":"open","locked":false,"title":"Runtime Exception when SQL ~ LIKE $param + '%'","user":{"login":"cchantep","id":166062,"avatar_url":"https://avatars.githubusercontent.com/u/166062?v=3","gravatar_id":"","url":"https://api.github.com/users/cchantep","html_url":"https://github.com/cchantep","followers_url":"https://api.github.com/users/cchantep/followers","following_url":"https://api.github.com/users/cchantep/following{/other_user}","gists_url":"https://api.github.com/users/cchantep/gists{/gist_id}","starred_url":"https://api.github.com/users/cchantep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cchantep/subscriptions","organizations_url":"https://api.github.com/users/cchantep/orgs","repos_url":"https://api.github.com/users/cchantep/repos","events_url":"https://api.github.com/users/cchantep/events{/privacy}","received_events_url":"https://api.github.com/users/cchantep/received_events","type":"User","site_admin":false},"body":"### Anorm Version (2.5.x / etc)\r\n2.5.1\r\n\r\n### Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)\r\nwindows 10\r\n### JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)\r\njdk 1.8_91 x64\r\n### Library Dependencies\r\ncom.microsoft.sqlserver.jdbc.SQLServerDriver\r\n### Expected Behavior\r\n```\r\nval hell = \"Hell\"\r\nval data2 = DBMS.withConnection( implicit conn =>\r\n      SQL\"\"\"\r\n         SELECT * FROM (SELECT 'Hello' AS COL1, 'World' AS COL2) AS MY_TABLE WHERE COL1 LIKE $hell + '%'\r\n      \"\"\".as(SqlParser.str(1).single)\r\n    )\r\n```\r\nrun without exception\r\n### Actual Behavior\r\n\r\n[RuntimeException: No parameter value for placeholder: 2]\r\n![image](https://cloud.githubusercontent.com/assets/7894760/15986977/47c009d8-3053-11e6-95b3-c0ab00a3b85b.png)\r\n\r\n### Workaround\r\n```\r\nval hell = \"Hell\" + \"%\"\r\nval data2 = DBMS.withConnection( implicit conn =>\r\n      SQL\"\"\"\r\n         SELECT * FROM (SELECT 'Hello' AS COL1, 'World' AS COL2) AS MY_TABLE WHERE COL1 LIKE $hell\r\n      \"\"\".as(SqlParser.str(1).single)\r\n    )\r\n```\r\n\r\n\r\n","created_at":"2016-06-17T15:02:41Z","updated_at":"2016-07-04T23:23:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3ae6db01fe23273ed047a2124ff0422375b622a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/playframework/anorm/pulls/106/commits","review_comments_url":"https://api.github.com/repos/playframework/anorm/pulls/106/comments","review_comment_url":"https://api.github.com/repos/playframework/anorm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/playframework/anorm/issues/106/comments","statuses_url":"https://api.github.com/repos/playframework/anorm/statuses/4a4a8771ee6799c1a07276c3714b481a052b070c","head":{"label":"cchantep:fix/106","ref":"fix/106","sha":"4a4a8771ee6799c1a07276c3714b481a052b070c","user":{"login":"cchantep","id":166062,"avatar_url":"https://avatars.githubusercontent.com/u/166062?v=3","gravatar_id":"","url":"https://api.github.com/users/cchantep","html_url":"https://github.com/cchantep","followers_url":"https://api.github.com/users/cchantep/followers","following_url":"https://api.github.com/users/cchantep/following{/other_user}","gists_url":"https://api.github.com/users/cchantep/gists{/gist_id}","starred_url":"https://api.github.com/users/cchantep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cchantep/subscriptions","organizations_url":"https://api.github.com/users/cchantep/orgs","repos_url":"https://api.github.com/users/cchantep/repos","events_url":"https://api.github.com/users/cchantep/events{/privacy}","received_events_url":"https://api.github.com/users/cchantep/received_events","type":"User","site_admin":false},"repo":{"id":27581866,"name":"anorm","full_name":"cchantep/anorm","owner":{"login":"cchantep","id":166062,"avatar_url":"https://avatars.githubusercontent.com/u/166062?v=3","gravatar_id":"","url":"https://api.github.com/users/cchantep","html_url":"https://github.com/cchantep","followers_url":"https://api.github.com/users/cchantep/followers","following_url":"https://api.github.com/users/cchantep/following{/other_user}","gists_url":"https://api.github.com/users/cchantep/gists{/gist_id}","starred_url":"https://api.github.com/users/cchantep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cchantep/subscriptions","organizations_url":"https://api.github.com/users/cchantep/orgs","repos_url":"https://api.github.com/users/cchantep/repos","events_url":"https://api.github.com/users/cchantep/events{/privacy}","received_events_url":"https://api.github.com/users/cchantep/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cchantep/anorm","description":"The Anorm database library","fork":true,"url":"https://api.github.com/repos/cchantep/anorm","forks_url":"https://api.github.com/repos/cchantep/anorm/forks","keys_url":"https://api.github.com/repos/cchantep/anorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cchantep/anorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cchantep/anorm/teams","hooks_url":"https://api.github.com/repos/cchantep/anorm/hooks","issue_events_url":"https://api.github.com/repos/cchantep/anorm/issues/events{/number}","events_url":"https://api.github.com/repos/cchantep/anorm/events","assignees_url":"https://api.github.com/repos/cchantep/anorm/assignees{/user}","branches_url":"https://api.github.com/repos/cchantep/anorm/branches{/branch}","tags_url":"https://api.github.com/repos/cchantep/anorm/tags","blobs_url":"https://api.github.com/repos/cchantep/anorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cchantep/anorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cchantep/anorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/cchantep/anorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cchantep/anorm/statuses/{sha}","languages_url":"https://api.github.com/repos/cchantep/anorm/languages","stargazers_url":"https://api.github.com/repos/cchantep/anorm/stargazers","contributors_url":"https://api.github.com/repos/cchantep/anorm/contributors","subscribers_url":"https://api.github.com/repos/cchantep/anorm/subscribers","subscription_url":"https://api.github.com/repos/cchantep/anorm/subscription","commits_url":"https://api.github.com/repos/cchantep/anorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/cchantep/anorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/cchantep/anorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/cchantep/anorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/cchantep/anorm/contents/{+path}","compare_url":"https://api.github.com/repos/cchantep/anorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cchantep/anorm/merges","archive_url":"https://api.github.com/repos/cchantep/anorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cchantep/anorm/downloads","issues_url":"https://api.github.com/repos/cchantep/anorm/issues{/number}","pulls_url":"https://api.github.com/repos/cchantep/anorm/pulls{/number}","milestones_url":"https://api.github.com/repos/cchantep/anorm/milestones{/number}","notifications_url":"https://api.github.com/repos/cchantep/anorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cchantep/anorm/labels{/name}","releases_url":"https://api.github.com/repos/cchantep/anorm/releases{/id}","deployments_url":"https://api.github.com/repos/cchantep/anorm/deployments","created_at":"2014-12-05T08:24:53Z","updated_at":"2015-01-02T16:57:57Z","pushed_at":"2016-06-17T20:27:53Z","git_url":"git://github.com/cchantep/anorm.git","ssh_url":"git@github.com:cchantep/anorm.git","clone_url":"https://github.com/cchantep/anorm.git","svn_url":"https://github.com/cchantep/anorm","homepage":null,"size":659,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"playframework:master","ref":"master","sha":"0b9605990358423b10d5a5bf6daed2ad0e6966f7","user":{"login":"playframework","id":319107,"avatar_url":"https://avatars.githubusercontent.com/u/319107?v=3","gravatar_id":"","url":"https://api.github.com/users/playframework","html_url":"https://github.com/playframework","followers_url":"https://api.github.com/users/playframework/followers","following_url":"https://api.github.com/users/playframework/following{/other_user}","gists_url":"https://api.github.com/users/playframework/gists{/gist_id}","starred_url":"https://api.github.com/users/playframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playframework/subscriptions","organizations_url":"https://api.github.com/users/playframework/orgs","repos_url":"https://api.github.com/users/playframework/repos","events_url":"https://api.github.com/users/playframework/events{/privacy}","received_events_url":"https://api.github.com/users/playframework/received_events","type":"Organization","site_admin":false},"repo":{"id":27571675,"name":"anorm","full_name":"playframework/anorm","owner":{"login":"playframework","id":319107,"avatar_url":"https://avatars.githubusercontent.com/u/319107?v=3","gravatar_id":"","url":"https://api.github.com/users/playframework","html_url":"https://github.com/playframework","followers_url":"https://api.github.com/users/playframework/followers","following_url":"https://api.github.com/users/playframework/following{/other_user}","gists_url":"https://api.github.com/users/playframework/gists{/gist_id}","starred_url":"https://api.github.com/users/playframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/playframework/subscriptions","organizations_url":"https://api.github.com/users/playframework/orgs","repos_url":"https://api.github.com/users/playframework/repos","events_url":"https://api.github.com/users/playframework/events{/privacy}","received_events_url":"https://api.github.com/users/playframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/playframework/anorm","description":"The Anorm database library","fork":false,"url":"https://api.github.com/repos/playframework/anorm","forks_url":"https://api.github.com/repos/playframework/anorm/forks","keys_url":"https://api.github.com/repos/playframework/anorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/playframework/anorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/playframework/anorm/teams","hooks_url":"https://api.github.com/repos/playframework/anorm/hooks","issue_events_url":"https://api.github.com/repos/playframework/anorm/issues/events{/number}","events_url":"https://api.github.com/repos/playframework/anorm/events","assignees_url":"https://api.github.com/repos/playframework/anorm/assignees{/user}","branches_url":"https://api.github.com/repos/playframework/anorm/branches{/branch}","tags_url":"https://api.github.com/repos/playframework/anorm/tags","blobs_url":"https://api.github.com/repos/playframework/anorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/playframework/anorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/playframework/anorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/playframework/anorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/playframework/anorm/statuses/{sha}","languages_url":"https://api.github.com/repos/playframework/anorm/languages","stargazers_url":"https://api.github.com/repos/playframework/anorm/stargazers","contributors_url":"https://api.github.com/repos/playframework/anorm/contributors","subscribers_url":"https://api.github.com/repos/playframework/anorm/subscribers","subscription_url":"https://api.github.com/repos/playframework/anorm/subscription","commits_url":"https://api.github.com/repos/playframework/anorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/playframework/anorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/playframework/anorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/playframework/anorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/playframework/anorm/contents/{+path}","compare_url":"https://api.github.com/repos/playframework/anorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/playframework/anorm/merges","archive_url":"https://api.github.com/repos/playframework/anorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/playframework/anorm/downloads","issues_url":"https://api.github.com/repos/playframework/anorm/issues{/number}","pulls_url":"https://api.github.com/repos/playframework/anorm/pulls{/number}","milestones_url":"https://api.github.com/repos/playframework/anorm/milestones{/number}","notifications_url":"https://api.github.com/repos/playframework/anorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/playframework/anorm/labels{/name}","releases_url":"https://api.github.com/repos/playframework/anorm/releases{/id}","deployments_url":"https://api.github.com/repos/playframework/anorm/deployments","created_at":"2014-12-05T03:05:14Z","updated_at":"2016-07-02T15:32:31Z","pushed_at":"2016-06-17T20:27:54Z","git_url":"git://github.com/playframework/anorm.git","ssh_url":"git@github.com:playframework/anorm.git","clone_url":"https://github.com/playframework/anorm.git","svn_url":"https://github.com/playframework/anorm","homepage":null,"size":776,"stargazers_count":95,"watchers_count":95,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":3,"forks":40,"open_issues":3,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/playframework/anorm/pulls/106"},"html":{"href":"https://github.com/playframework/anorm/pull/106"},"issue":{"href":"https://api.github.com/repos/playframework/anorm/issues/106"},"comments":{"href":"https://api.github.com/repos/playframework/anorm/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/playframework/anorm/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/playframework/anorm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/playframework/anorm/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/playframework/anorm/statuses/4a4a8771ee6799c1a07276c3714b481a052b070c"}}}}
{"actor":{"display_login":"richdougherty"}}