{"action":"created","issue":{"url":"https://api.github.com/repos/sfackler/rust-postgres/issues/151","labels_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/151/comments","events_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/151/events","html_url":"https://github.com/sfackler/rust-postgres/issues/151","id":123855609,"number":151,"title":"How to set value to Null","user":{"login":"ivanceras","id":7972655,"avatar_url":"https://avatars.githubusercontent.com/u/7972655?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanceras","html_url":"https://github.com/ivanceras","followers_url":"https://api.github.com/users/ivanceras/followers","following_url":"https://api.github.com/users/ivanceras/following{/other_user}","gists_url":"https://api.github.com/users/ivanceras/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanceras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanceras/subscriptions","organizations_url":"https://api.github.com/users/ivanceras/orgs","repos_url":"https://api.github.com/users/ivanceras/repos","events_url":"https://api.github.com/users/ivanceras/events{/privacy}","received_events_url":"https://api.github.com/users/ivanceras/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-25T05:59:26Z","updated_at":"2015-12-25T06:56:16Z","closed_at":null,"body":"I am having difficulty figuring out how to set `bar` to `null`\r\n\r\n```rust\r\nlet stmt = try!(conn.prepare(\"UPDATE foo SET bar = $1 WHERE baz = $2\"));\r\nlet bar = IsNull::Yes;  //  ToSql is not implemented for postgres::types::IsNull\r\ntry!(stmt.execute(&[bar, baz]));\r\n\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sfackler/rust-postgres/issues/comments/167202303","html_url":"https://github.com/sfackler/rust-postgres/issues/151#issuecomment-167202303","issue_url":"https://api.github.com/repos/sfackler/rust-postgres/issues/151","id":167202303,"user":{"login":"sfackler","id":1455697,"avatar_url":"https://avatars.githubusercontent.com/u/1455697?v=3","gravatar_id":"","url":"https://api.github.com/users/sfackler","html_url":"https://github.com/sfackler","followers_url":"https://api.github.com/users/sfackler/followers","following_url":"https://api.github.com/users/sfackler/following{/other_user}","gists_url":"https://api.github.com/users/sfackler/gists{/gist_id}","starred_url":"https://api.github.com/users/sfackler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfackler/subscriptions","organizations_url":"https://api.github.com/users/sfackler/orgs","repos_url":"https://api.github.com/users/sfackler/repos","events_url":"https://api.github.com/users/sfackler/events{/privacy}","received_events_url":"https://api.github.com/users/sfackler/received_events","type":"User","site_admin":false},"created_at":"2015-12-25T06:56:15Z","updated_at":"2015-12-25T06:56:15Z","body":"`Option<T>` indicates a nullable SQL value, with `None` indicating `NULL`."}}