Modified pool.lisp:acquire-from-conn-pool to perform connection
authorRuss Tyndall <russ@acceleration.net>
Mon, 5 Jan 2009 19:18:42 +0000 (14:18 -0500)
committerNathan Bird <nathan@acceleration.net>
Mon, 2 Feb 2009 19:31:28 +0000 (14:31 -0500)
commit0a29c2fafbfb7ed42c54208cea576c6b0d600d82
tree1a78f925a4e0b2be008bcf477a7a8f5283029fa4
parent537d6ed5ace1087fff6602dfe8018cd37cad112c
Modified pool.lisp:acquire-from-conn-pool to perform connection
validity checks on all returned connections.

Pooled connections can become invalid whenever the pipe goes down,
(such as db reboot). To do this check we 'SELECT 1;' on the connection
and catch any errors that occur, disconnecting the connection if it
is no longer valid
sql/pool.lisp