OverFlowException on Oracle ODBC RowCount
607075Sep 2 2010 — edited Sep 2 2010Hi,
I'm using NHibernate to select an entity from an Oracle database through ODBC.
This works fine on a 32bit system, but on x64 the following error occurs: It seems the rowcount is not in a correct format?
I've running from a 64bit Application, on a 64bit (duh) Win7, ODBC connections were managed in the 64bit ODBC manager.
Arithmetic operation resulted in an overflow.
at System.Data.Odbc.OdbcStatementHandle.RowCount(SQLLEN& rowCount)
at System.Data.Odbc.OdbcDataReader.GetRowCount()
at System.Data.Odbc.OdbcDataReader.FirstResult()
at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader, Object[] methodArguments, SQL_API odbcApiMethod)
at System.Data.Odbc.OdbcCommand.ExecuteReaderObject(CommandBehavior behavior, String method, Boolean needReader)
at System.Data.Odbc.OdbcCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Odbc.OdbcCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
Now, I am running this through NHibernate, so I'm not sure wether the RowCount is default behaviour of the OdbcDataReader or invoked by NHibernate.
Either way, running a rowcount should not crash?
Any help on the subject is very welcome...
Edited by: user604072 on 2-sep-2010 11:02