none
OverFlowException on Oracle ODBC RowCount RRS feed

  • Question

  • Hi,

    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?
    Wednesday, September 1, 2010 8:14 PM

Answers

All replies