exec query was not retrying after lost connection

We were having an issue on our rails 3.2 project where if the database connection was lost it would not attempt to retry because the exec_query codepath does not execute with_retry.