Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OverFlowException on Oracle ODBC RowCount

607075Sep 2 2010 — edited Sep 2 2010
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?

Any help on the subject is very welcome...

Edited by: user604072 on 2-sep-2010 11:02
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 30 2010
Added on Sep 2 2010
2 comments
5,022 views