src/jrd/extds/IscDS.cpp
bool IscConnection::isAvailable(thread_db* tdbb, TraScope traScope) const
{
	const int flags = m_provider.getFlags();
	if (m_used_stmts && !(flags & prvMultyStmts))
		return false;

	if (m_transactions.getCount() && !(flags & prvMultyTrans) && !findTransaction(tdbb, traScope))
	{
		return false;
	}

	return true;
}
// this ISC connection instance is available for the current execution context if it
// a) has no active statements or supports many active statements
//    and
// b) has no active transactions or has active transaction of given
//	  TraScope bound to current jrd transaction or supports many active
//    transactions
this ISC connection instance is available for the current execution context if it
a) has no active statements or supports many active statements
and
b) has no active transactions or has active transaction of given
TraScope bound to current jrd transaction or supports many active
transactions
this ISC connection instance is available for the current execution context if it a ) has no active statements or supports many active statements and b ) has no active transactions or has active transaction of given TraScope bound to current jrd transaction or supports many active transactions
bool IscConnection::isAvailable(thread_db* tdbb, TraScope traScope) const
{
	const int flags = m_provider.getFlags();
	if (m_used_stmts && !(flags & prvMultyStmts))
		return false;
	if (m_transactions.getCount() && !(flags & prvMultyTrans) && !findTransaction(tdbb, traScope))
	{
		return false;
	}
	return true;
}
bool IscConnection :: isAvailable ( thread_db * tdbb , TraScope traScope ) const { const int flags = m_provider . getFlags ( ) ; if ( m_used_stmts && ! ( flags & prvMultyStmts ) ) return false ; if ( m_transactions . getCount ( ) && ! ( flags & prvMultyTrans ) && ! findTransaction ( tdbb , traScope ) ) { return false ; } return true ; }
this ISC connection instance is available for the current execution context if it
a) has no active statements or supports many active statements
and
b) has no active transactions or has active transaction of given
TraScope bound to current jrd transaction or supports many active
transactions
this ISC connection instance is available for the current execution context if it a ) has no active statements or supports many active statements and b ) has no active transactions or has active transaction of given TraScope bound to current jrd transaction or supports many active transactions