{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tidb/issues/463","labels_url":"https://api.github.com/repos/pingcap/tidb/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tidb/issues/463/comments","events_url":"https://api.github.com/repos/pingcap/tidb/issues/463/events","html_url":"https://github.com/pingcap/tidb/issues/463","id":113740474,"number":463,"title":"before tidb.runStmt return error, need to rollback the current transaction","user":{"login":"winkyao","id":6949944,"avatar_url":"https://avatars.githubusercontent.com/u/6949944?v=3","gravatar_id":"","url":"https://api.github.com/users/winkyao","html_url":"https://github.com/winkyao","followers_url":"https://api.github.com/users/winkyao/followers","following_url":"https://api.github.com/users/winkyao/following{/other_user}","gists_url":"https://api.github.com/users/winkyao/gists{/gist_id}","starred_url":"https://api.github.com/users/winkyao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winkyao/subscriptions","organizations_url":"https://api.github.com/users/winkyao/orgs","repos_url":"https://api.github.com/users/winkyao/repos","events_url":"https://api.github.com/users/winkyao/events{/privacy}","received_events_url":"https://api.github.com/users/winkyao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-28T04:18:15Z","updated_at":"2015-10-28T05:43:17Z","closed_at":null,"body":"In tidb.runStmt, if encount some error in any exec func, you need to rollback the current transaction, otherwise, the txn.UnionStore.Dirty will contain some discard data..\r\n\r\nhttps://github.com/pingcap/tidb/blob/d7c3cc47916db41552b88fb55f2cf0156be4bea1/tidb.go#L171"},"comment":{"url":"https://api.github.com/repos/pingcap/tidb/issues/comments/151731118","html_url":"https://github.com/pingcap/tidb/issues/463#issuecomment-151731118","issue_url":"https://api.github.com/repos/pingcap/tidb/issues/463","id":151731118,"user":{"login":"ngaut","id":878009,"avatar_url":"https://avatars.githubusercontent.com/u/878009?v=3","gravatar_id":"","url":"https://api.github.com/users/ngaut","html_url":"https://github.com/ngaut","followers_url":"https://api.github.com/users/ngaut/followers","following_url":"https://api.github.com/users/ngaut/following{/other_user}","gists_url":"https://api.github.com/users/ngaut/gists{/gist_id}","starred_url":"https://api.github.com/users/ngaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngaut/subscriptions","organizations_url":"https://api.github.com/users/ngaut/orgs","repos_url":"https://api.github.com/users/ngaut/repos","events_url":"https://api.github.com/users/ngaut/events{/privacy}","received_events_url":"https://api.github.com/users/ngaut/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T05:43:17Z","updated_at":"2015-10-28T05:43:17Z","body":"Good catch! @winkyao "}}