Commits
![Eliot Gable](https://secure.gravatar.com/avatar/85632ad49c18135380e195532214585e.jpg?s=96&d=mm)
Eliot Gable committed 0160072adcc
Fix query cancelling so it leaves the handle in a good state; fix detection of broken connections in db_is_up by consuming the EOF on a failed connection before checking if the connection failed; add more detailed logging about who called the SQL function when something goes wrong.