{"action":"closed","issue":{"url":"https://api.github.com/repos/go-sql-driver/mysql/issues/653","repository_url":"https://api.github.com/repos/go-sql-driver/mysql","labels_url":"https://api.github.com/repos/go-sql-driver/mysql/issues/653/labels{/name}","comments_url":"https://api.github.com/repos/go-sql-driver/mysql/issues/653/comments","events_url":"https://api.github.com/repos/go-sql-driver/mysql/issues/653/events","html_url":"https://github.com/go-sql-driver/mysql/issues/653","id":253508804,"number":653,"title":"mysql function: inet_aton(?) fails","user":{"login":"gosp","id":29788124,"avatar_url":"https://avatars1.githubusercontent.com/u/29788124?v=4","gravatar_id":"","url":"https://api.github.com/users/gosp","html_url":"https://github.com/gosp","followers_url":"https://api.github.com/users/gosp/followers","following_url":"https://api.github.com/users/gosp/following{/other_user}","gists_url":"https://api.github.com/users/gosp/gists{/gist_id}","starred_url":"https://api.github.com/users/gosp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gosp/subscriptions","organizations_url":"https://api.github.com/users/gosp/orgs","repos_url":"https://api.github.com/users/gosp/repos","events_url":"https://api.github.com/users/gosp/events{/privacy}","received_events_url":"https://api.github.com/users/gosp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-08-29T02:14:08Z","updated_at":"2017-09-01T01:59:24Z","closed_at":"2017-09-01T01:59:24Z","author_association":"NONE","body":"### Issue description\r\nparameter `ip` is `string` type, but the mysql `ip` column is `uint` type. `inet_aton(?)` fails.\r\n\r\n### Example code\r\n\r\n```\r\n\tsqlTemplate := `INSERT INTO signin (tool_id, action, hostname, ip)\r\n\tSELECT t.id, 0, ?, inet_aton(?) FROM tool t WHERE t.name=?`\r\n\t_, err := db.Exec(sqlTemplate, hostname, ip, tool)\r\n```\r\n\r\n### Error log\r\n```\r\nIncorrect string value: '?' for function inet_aton\r\n```\r\n\r\n### Configuration\r\n*Driver version (or git SHA):* 1.3.0\r\n\r\n*Go version:* 1.9\r\n\r\n*Server version:* MySQL 5.7\r\n\r\n*Server OS:* Ubuntu 16.04\r\n"}}
{"actor":{"display_login":"methane"}}