NHibernate 3.2 GA and Direct Mode raise Error

NHibernate 3.2 GA and Direct Mode raise Error

Postby debop » Wed 10 Aug 2011 01:16

I used dotConnect for Oracle and NHibernate 3.1 GA. it all right !!!

but upgrade to NHibernate 3.2 GA, raise ORA-01008: not all variables bound

need :p0 but :p1

I won't use indirect mode... should use direct mode...


==========================================================

2011-08-10 01:12:40.1844 [6] [Error] [RCL.Data.NH.NLogLogger.Error]#
ORA-01008: not all variables bound
2011-08-10 01:12:40.1844 [6] [Debug] [RCL.Data.NH.NLogLogger.Debug]#
after autocommit
2011-08-10 01:12:40.1844 [6] [Debug] [RCL.Data.NH.NLogLogger.Debug]#
transaction completion
2011-08-10 01:12:40.1844 [6] [Debug] [RCL.Data.NH.NLogLogger.Debug]#
aggressively releasing database connection
Test 'RCL.Data.DevartOracle.NH.Domains.MappingTestCase.SimpleEntity'
failed: NHibernate.Exceptions.GenericADOException : could not execute
query
[ select company0_.COMPANY_ID as COMPANY1_2_, company0_.COMPANY_CODE
as COMPANY2_2_, company0_.COMPANY_NAME as COMPANY3_2_,
company0_.UpdateTimestamp as UpdateTi4_2_ from NH_COMPANY company0_
where company0_.COMPANY_CODE=:p0 ]
Name:p1 - Value:REALWEB
[SQL: select company0_.COMPANY_ID as COMPANY1_2_,
company0_.COMPANY_CODE as COMPANY2_2_, company0_.COMPANY_NAME as
COMPANY3_2_, company0_.UpdateTimestamp as UpdateTi4_2_ from NH_COMPANY
company0_ where company0_.COMPANY_CODE=:p0]
----> Devart.Data.Oracle.OracleException : ORA-01008: not all
variables bound
위치: NHibernate.Loader.Loader.DoList(ISessionImplementor session,
QueryParameters queryParameters)
위치: NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor
session, QueryParameters queryParameters)
위치:
NHibernate.Hql.Ast.ANTLR.Loader.QueryLoader.List(ISessionImplementor
session, QueryParameters queryParameters)
위치:
NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.List(ISessionImplementor
session, QueryParameters queryParameters)
위치: NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters
queryParameters, ISessionImplementor session, IList results)
위치: NHibernate.Impl.SessionImpl.List(IQueryExpression
queryExpression, QueryParameters queryParameters, IList results)
위치: NHibernate.Impl.AbstractSessionImpl.List(IQueryExpression
queryExpression, QueryParameters parameters)
위치: NHibernate.Impl.ExpressionQueryImpl.List()
위치:
NHibernate.Linq.DefaultQueryProvider.ExecuteQuery(NhLinqExpression
nhLinqExpression, IQuery query, NhLinqExpression nhQuery)
위치: NHibernate.Linq.DefaultQueryProvider.Execute(Expression
expression)
위치: NHibernate.Linq.DefaultQueryProvider.Execute[TResult](Expression
expression)
위치: System.Linq.Queryable.Single[TSource](IQueryable`1 source)
D:\RealWeb Products\RCL\RCL-svn\RCL-Data\RCL.Data.DevartOracle.Test\NH
\Domains\MappingTestCase.cs(23,0): 위치:
RCL.Data.DevartOracle.NH.Domains.MappingTestCase.SimpleEntity()
--OracleException
위치: Devart.Data.Oracle.ao.d()
위치: Devart.Data.Oracle.x.m()
위치: Devart.Data.Oracle.x.c()
위치: Devart.Data.Oracle.u.a(Int32 A_0, bf A_1)
위치: Devart.Data.Oracle.OracleCommand.InternalExecute(CommandBehavior
behavior, IDisposable disposable, Int32 startRecord, Int32 maxRecords,
Boolean nonQuery)
위치: Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior
behavior, Boolean nonQuery)
위치:
System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()
위치: NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd)
위치: NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean
autoDiscoverTypes, Boolean callable, RowSelection selection,
ISessionImplementor session)
위치: NHibernate.Loader.Loader.DoQuery(ISessionImplementor session,
QueryParameters queryParameters, Boolean returnProxies)
위치:
NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor
session, QueryParameters queryParameters, Boolean returnProxies)
위치: NHibernate.Loader.Loader.DoList(ISessionImplementor session,
QueryParameters queryParameters)
debop
 
Posts: 4
Joined: Wed 10 Aug 2011 01:07
Location: Seoul

Postby Shalex » Wed 10 Aug 2011 16:17

Shalex
Devart Team
 
Posts: 7460
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle