title: OverFlowException on Oracle ODBC RowCount
body: <p>I'm using NHibernate to select an entity from an Oracle database through ODBC.</p>
  
  <p>This works fine on a 32bit system, but on x64 the following error occurs: It seems the rowcount is not in a correct format?</p>
  
  <p>(ODBC part)</p>
  
  <pre><code>Arithmetic operation resulted in an overflow.
  
     at System.Data.Odbc.OdbcStatementHandle.RowCount(SQLLEN&amp; 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()
     at NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd)
     at NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor     session)
     at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
     at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean     returnProxies)
     at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object id, IType identifierType, Object optionalObject, String     optionalEntityName, Object optionalIdentifier, IEntityPersister persister)
  </code></pre>
  
  <p>(NHibernate part, but I doubt the problem is situated here):</p>
  
  <pre><code>could not load an entity: (Simple NHIbernate Query, works on x86)
  
     at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object id, IType identifierType, Object optionalObject, String     optionalEntityName, Object optionalIdentifier, IEntityPersister persister)
     at NHibernate.Loader.Entity.AbstractEntityLoader.Load(ISessionImplementor session, Object id, Object optionalObject, Object optionalId)
     at NHibernate.Loader.Entity.AbstractEntityLoader.Load(Object id, Object optionalObject, ISessionImplementor session)
     at NHibernate.Persister.Entity.AbstractEntityPersister.Load(Object id, Object optionalObject, LockMode lockMode, ISessionImplementor session)
     at NHibernate.Event.Default.DefaultLoadEventListener.LoadFromDatasource(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType     options)
     at NHibernate.Event.Default.DefaultLoadEventListener.DoLoad(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options)
     at NHibernate.Event.Default.DefaultLoadEventListener.Load(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options)
     at NHibernate.Event.Default.DefaultLoadEventListener.ProxyOrLoad(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options)
     at NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEvent event, LoadType loadType)
     at NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadType loadType)
     at NHibernate.Impl.SessionImpl.Get(String entityName, Object id)
     at NHibernate.Impl.SessionImpl.Get(Type entityClass, Object id)
     at NHibernate.Impl.SessionImpl.Get[T](Object id)
  </code></pre>