Fixes SqlDatabase#getConnectionFromDataSource to actually retry correctly.