Open
Description
Alex V created an issue — 27th March 2013, 11:59:36:
Using QueryOver pattern setting timeout not working. e.g. query.RootCriteria.SetTimeout(x);
Consider the following example, none of the SetTimeout calls actually working, query executes with default timeout:public IFutureValue<int> FutureCount<T>(QueryOver<T> query) where T : PersistentObject { query.RootCriteria.SetTimeout(900); query.UnderlyingCriteria.SetTimeout(900); var queryOver = query.GetExecutableQueryOver(session); queryOver.RootCriteria.SetTimeout(900); queryOver.UnderlyingCriteria.SetTimeout(900); var rowCountQuery = queryOver.ToRowCountQuery(); rowCountQuery.RootCriteria.SetTimeout(900); rowCountQuery.UnderlyingCriteria.SetTimeout(900); return rowCountQuery.FutureValue<int>(); }