{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/2365","repository_url":"https://api.github.com/repos/playframework/playframework","labels_url":"https://api.github.com/repos/playframework/playframework/issues/2365/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/2365/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/2365/events","html_url":"https://github.com/playframework/playframework/issues/2365","id":27391559,"number":2365,"title":"Quoting for database columns","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},"labels":[{"url":"https://api.github.com/repos/playframework/playframework/labels/community","name":"community","color":"006b75"},{"url":"https://api.github.com/repos/playframework/playframework/labels/feature","name":"feature","color":"02e10c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-02-11T22:10:26Z","updated_at":"2016-03-19T16:10:12Z","closed_at":null,"body":"We're starting to build up a few bugs to do with database column quoting: #2008, #2035, #2348. Apparently Play's evolutions code won't work with out of the box in MySQL 5.5 (#2008).\r\n\r\nMaybe we should look at a introducing a very lightweight service for quoting column and table names across databases, so that we can use this service throughout Play code. Maybe something with a default behaviour that works most of the time, but that can be overridden with a setting.\r\n\r\n````scala\r\nplay.api.db.DB.quote(identifier: String): String\r\n````\r\n\r\n````\r\ndb.default.quoting = play.api.db.Quoting.Auto\r\ndb.default.quoting = play.api.db.Quoting.BackTick\r\ndb.default.quoting = play.api.db.Quoting.DoubleQuote\r\ndb.default.quoting = play.api.db.Quoting.None\r\n````\r\n"},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/198739383","html_url":"https://github.com/playframework/playframework/issues/2365#issuecomment-198739383","issue_url":"https://api.github.com/repos/playframework/playframework/issues/2365","id":198739383,"user":{"login":"wsargent","id":71236,"avatar_url":"https://avatars.githubusercontent.com/u/71236?v=3","gravatar_id":"","url":"https://api.github.com/users/wsargent","html_url":"https://github.com/wsargent","followers_url":"https://api.github.com/users/wsargent/followers","following_url":"https://api.github.com/users/wsargent/following{/other_user}","gists_url":"https://api.github.com/users/wsargent/gists{/gist_id}","starred_url":"https://api.github.com/users/wsargent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsargent/subscriptions","organizations_url":"https://api.github.com/users/wsargent/orgs","repos_url":"https://api.github.com/users/wsargent/repos","events_url":"https://api.github.com/users/wsargent/events{/privacy}","received_events_url":"https://api.github.com/users/wsargent/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T16:10:12Z","updated_at":"2016-03-19T16:10:12Z","body":"Can we abstract Play's evolutions API so we can swap in something generic?  It seems odd this is hardcoded in and users can't change it."}}