SOCI/soci — pull request #115 by ricardofandrade (2013-03-31 21:08:31+00:00)
Title: Auto-reconnect if the connection goes bad during statement execution

It also re-prepares previously-prepared statements in this case
Internal commands such as BEGIN, ROLLBACK, COMMIT, DEALLOCATE are also able to reconnect
Interactive test included
Enjoy :)