Title: Boolean properties with Microsoft OracleClient

I'm using the Microsoft OracleClient (version is 1.0.5000.0) with IBatis DataMapper 1.0.1.321.  I've have a couple of boolean properties in my classes and am having some problems.

First off, not exactly sure what type the column should be in the database.  Secondly, I'm getting an 'NotSupportedException' from the OracleClient when the TypeMapper is calling 'GetBoolean'….

Unhandled Exception: System.NotSupportedException: Specified method is not supported.
   at System.Data.OracleClient.OracleDataReader.GetBoolean(Int32 i)
   at IBatisNet.DataMapper.TypesHandler.BooleanTypeHandler.GetValueByName(ResultProperty mapping, IDataReader dataReader)

   at IBatisNet.DataMapper.TypesHandler.BaseTypeHandler.GetDataBaseValue(ResultProperty mapping, IDataReader dataReader)

   at IBatisNet.DataMapper.MappedStatements.MappedStatement.SetObjectProperty(ResultMap resultMap, ResultProperty mapping, Object& target, IDataReader reader)

   at IBatisNet.DataMapper.MappedStatements.MappedStatement.ApplyResultMap(RequestScope request, IDataReader reader, Object resultObject)

   at IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForObject(RequestScope request, IDalSession session, Object parameterObject, Object resultObject)

   at IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(IDalSession session, Object parameterObject, Object resultObject)

   at IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForObject(IDalSession session, Object parameterObject)

   at IBatisNet.DataMapper.SqlMapper.QueryForObject(String statementName, Object parameterObject)

Has anybody dealt with this problem before?

Thanks.

Reply via email to