{"action":"created","issue":{"url":"https://api.github.com/repos/javalite/activejdbc/issues/383","labels_url":"https://api.github.com/repos/javalite/activejdbc/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/javalite/activejdbc/issues/383/comments","events_url":"https://api.github.com/repos/javalite/activejdbc/issues/383/events","html_url":"https://github.com/javalite/activejdbc/pull/383","id":60552549,"number":383,"title":"Adding a .toUpdate() method, issue #377","user":{"login":"tchoulihan","id":930215,"avatar_url":"https://avatars.githubusercontent.com/u/930215?v=3","gravatar_id":"","url":"https://api.github.com/users/tchoulihan","html_url":"https://github.com/tchoulihan","followers_url":"https://api.github.com/users/tchoulihan/followers","following_url":"https://api.github.com/users/tchoulihan/following{/other_user}","gists_url":"https://api.github.com/users/tchoulihan/gists{/gist_id}","starred_url":"https://api.github.com/users/tchoulihan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchoulihan/subscriptions","organizations_url":"https://api.github.com/users/tchoulihan/orgs","repos_url":"https://api.github.com/users/tchoulihan/repos","events_url":"https://api.github.com/users/tchoulihan/events{/privacy}","received_events_url":"https://api.github.com/users/tchoulihan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-03-10T19:10:11Z","updated_at":"2015-03-26T14:40:28Z","closed_at":"2015-03-25T21:14:17Z","pull_request":{"url":"https://api.github.com/repos/javalite/activejdbc/pulls/383","html_url":"https://github.com/javalite/activejdbc/pull/383","diff_url":"https://github.com/javalite/activejdbc/pull/383.diff","patch_url":"https://github.com/javalite/activejdbc/pull/383.patch"},"body":"I'm not sure if this was done the right way because I don't know how activejdbc does its parameterization, but it appears to be giving the correct output. \r\n\r\nI had to comment out a section that would give me strange errors if I left it in."},"comment":{"url":"https://api.github.com/repos/javalite/activejdbc/issues/comments/86543620","html_url":"https://github.com/javalite/activejdbc/pull/383#issuecomment-86543620","issue_url":"https://api.github.com/repos/javalite/activejdbc/issues/383","id":86543620,"user":{"login":"Garagoth","id":916161,"avatar_url":"https://avatars.githubusercontent.com/u/916161?v=3","gravatar_id":"","url":"https://api.github.com/users/Garagoth","html_url":"https://github.com/Garagoth","followers_url":"https://api.github.com/users/Garagoth/followers","following_url":"https://api.github.com/users/Garagoth/following{/other_user}","gists_url":"https://api.github.com/users/Garagoth/gists{/gist_id}","starred_url":"https://api.github.com/users/Garagoth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Garagoth/subscriptions","organizations_url":"https://api.github.com/users/Garagoth/orgs","repos_url":"https://api.github.com/users/Garagoth/repos","events_url":"https://api.github.com/users/Garagoth/events{/privacy}","received_events_url":"https://api.github.com/users/Garagoth/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T14:40:28Z","updated_at":"2015-03-26T14:40:28Z","body":"@ericbn, I meant update() not toUpdate() method.\r\ninsert() is using dialect, but update() is not right now.\r\n\r\nIn my opinion toUpdate() should generate statement that is equivalent to what framework will do when updating a model, so it should take into account dirtyAttributeNames.\r\n\r\nG."}}