|
From: NHibernate J. <mik...@us...> - 2006-11-06 16:51:37
|
NHybridDataReader.ReadIntoMemory fails when the result is 0 records. "Invalid attempt to read when no data is present".
-----------------------------------------------------------------------------------------------------------------------
Key: NH-793
URL: http://jira.nhibernate.org/browse/NH-793
Project: NHibernate
Type: Bug
Components: Core
Versions: 1.0.2, 1.0.3
Reporter: dstefanov
Priority: Critical
public bool Read()
{
// DS 6/30/06 - If the result is 0 records the read will always return false
// and the _isMidstream should be false so we don't attempt to read from the
// reader when we do ReadIntoMemory. We were getting an error
// "Invalid attempt to read when no data is present" when trying to get data
// from the reader is such cases.
//
//_isMidstream = true;
//return _reader.Read();
//
_isMidstream = _reader.Read();
return _isMidstream;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nhibernate.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|