{"action":"closed","issue":{"url":"https://api.github.com/repos/jackc/pgx/issues/115","labels_url":"https://api.github.com/repos/jackc/pgx/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/jackc/pgx/issues/115/comments","events_url":"https://api.github.com/repos/jackc/pgx/issues/115/events","html_url":"https://github.com/jackc/pgx/issues/115","id":129021411,"number":115,"title":"Using Query and ignoring the Rows response causes lockup","user":{"login":"ARolek","id":667850,"avatar_url":"https://avatars.githubusercontent.com/u/667850?v=3","gravatar_id":"","url":"https://api.github.com/users/ARolek","html_url":"https://github.com/ARolek","followers_url":"https://api.github.com/users/ARolek/followers","following_url":"https://api.github.com/users/ARolek/following{/other_user}","gists_url":"https://api.github.com/users/ARolek/gists{/gist_id}","starred_url":"https://api.github.com/users/ARolek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARolek/subscriptions","organizations_url":"https://api.github.com/users/ARolek/orgs","repos_url":"https://api.github.com/users/ARolek/repos","events_url":"https://api.github.com/users/ARolek/events{/privacy}","received_events_url":"https://api.github.com/users/ARolek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-27T03:52:55Z","updated_at":"2016-01-29T21:37:09Z","closed_at":"2016-01-29T21:37:09Z","body":"I have encountered a peculiar issue which might be just user error. I have the following block of code:\r\n\r\n```\r\nquery := `\r\n\tUPDATE \r\n\t\tmytable\r\n\tSET \r\n\t\twiki=$2\r\n\tWHERE \r\n\t\tid=$1;`\r\n\r\n_, err = connPool.Query(query, this.Id, this.Wiki)\r\n```\r\n\r\nWhere `wiki` is of type `jsonb` and `connPool` is of type `*pgx.ConnPool`. \r\n\r\nIn an isolated environment this block of code would consistently lock up the program on the 11th call. Everything executes fine for the first 10 calls, but the 11th would lock up the entire program.\r\n\r\nAfter reviewing the code it appears `Query(...)` should actually be `Exec(...)`, and after making this change everything works fine. I'm not quite sure why the call to `Query(...)` was locking up the process though. I believe it might have to do with the `*Rows` value being returned but never scanned. \r\n\r\nIf you have any insight, I'm interested in understanding why this would break the program.  "}}