{"action":"created","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-mysql-postgresql-client/issues/25","labels_url":"https://api.github.com/repos/vert-x3/vertx-mysql-postgresql-client/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-mysql-postgresql-client/issues/25/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-mysql-postgresql-client/issues/25/events","html_url":"https://github.com/vert-x3/vertx-mysql-postgresql-client/issues/25","id":108658170,"number":25,"title":"update does not follow the same semantics of jdbc-client in regards to generated ids","user":{"login":"pmlopes","id":849467,"avatar_url":"https://avatars.githubusercontent.com/u/849467?v=3","gravatar_id":"","url":"https://api.github.com/users/pmlopes","html_url":"https://github.com/pmlopes","followers_url":"https://api.github.com/users/pmlopes/followers","following_url":"https://api.github.com/users/pmlopes/following{/other_user}","gists_url":"https://api.github.com/users/pmlopes/gists{/gist_id}","starred_url":"https://api.github.com/users/pmlopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmlopes/subscriptions","organizations_url":"https://api.github.com/users/pmlopes/orgs","repos_url":"https://api.github.com/users/pmlopes/repos","events_url":"https://api.github.com/users/pmlopes/events{/privacy}","received_events_url":"https://api.github.com/users/pmlopes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-28T13:28:50Z","updated_at":"2015-09-28T15:11:53Z","closed_at":null,"body":"When an insert into a table with generated ids, `auto_increment` on mysql/mariadb the generated id's are not returned automatically like it happens on `jdbc-client`.\r\n\r\nThis means that the async driver is not a drop-in replacement for jdbc-client."},"comment":{"url":"https://api.github.com/repos/vert-x3/vertx-mysql-postgresql-client/issues/comments/143770949","html_url":"https://github.com/vert-x3/vertx-mysql-postgresql-client/issues/25#issuecomment-143770949","issue_url":"https://api.github.com/repos/vert-x3/vertx-mysql-postgresql-client/issues/25","id":143770949,"user":{"login":"pmlopes","id":849467,"avatar_url":"https://avatars.githubusercontent.com/u/849467?v=3","gravatar_id":"","url":"https://api.github.com/users/pmlopes","html_url":"https://github.com/pmlopes","followers_url":"https://api.github.com/users/pmlopes/followers","following_url":"https://api.github.com/users/pmlopes/following{/other_user}","gists_url":"https://api.github.com/users/pmlopes/gists{/gist_id}","starred_url":"https://api.github.com/users/pmlopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmlopes/subscriptions","organizations_url":"https://api.github.com/users/pmlopes/orgs","repos_url":"https://api.github.com/users/pmlopes/repos","events_url":"https://api.github.com/users/pmlopes/events{/privacy}","received_events_url":"https://api.github.com/users/pmlopes/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T15:11:53Z","updated_at":"2015-09-28T15:11:53Z","body":"To fix it on our side we would need to parse the SQL and add the returning action. I don't know if this is a good idea since it can become tricky to parse SQL for example once someone uses common table expressions for example:\r\n\r\n```sql\r\nwith inserted as (\r\n  insert into things(name)\r\n  values('Rob') returning *\r\n)\r\ninsert into thing_logs(thing_id,entry)\r\nselect inserted.id, 'New thing created: ' || inserted.name from inserted;\r\n```\r\n\r\nshould we return ids, which ones, how can you parse this correctly? and trust me this CTE is quite simple :)"}}