test that a bad query is retried if the error code is listed for retry

See GH-33.

This tests the case where it is a sql error and the resulting error has `err.errno == 1146`. 

I need to work out a way to force a socket error to produce the wrapped `err.cause.errno` to have a value.