i've already tried that solution but i get this error in the log
2006-05-22 10:18:19,225 [312] DEBUG NHibernate.Impl.BatcherImpl - Opened new IDbCommand, open IDbCommands :1
2006-05-22 10:18:19,225 [312] DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: SELECT DISTINCT ESAARKEY ESAARKEY0_ FROM ESAMI Exams WHERE SPKEY SPKEY0_ = 'CHIRUR'
2006-05-22 10:18:19,240 [312] INFO NHibernate.Loader.Loader - SELECT DISTINCT ESAARKEY ESAARKEY0_ FROM ESAMI Exams WHERE SPKEY SPKEY0_ = 'CHIRUR'
2006-05-22 10:18:19,240 [312] DEBUG NHibernate.SQL - SELECT DISTINCT ESAARKEY ESAARKEY0_ FROM ESAMI Exams WHERE SPKEY SPKEY0_ = 'CHIRUR'
2006-05-22 10:18:19,412 [312] DEBUG NHibernate.Util.ADOExceptionReporter - SQL Exception
Oracle.DataAccess.Client.OracleException ORA-00920: operatore relazionale non valido in Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
in Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src)
in Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
in Oracle.DataAccess.Client.OracleCommand.System.Data.IDbCommand.ExecuteReader()
in NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
in NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
2006-05-22 10:18:19,412 [312] WARN NHibernate.Util.ADOExceptionReporter - Oracle.DataAccess.Client.OracleException ORA-00920: operatore relazionale non valido in Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
in Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src)
in Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
in Oracle.DataAccess.Client.OracleCommand.System.Data.IDbCommand.ExecuteReader()
in NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
in NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
2006-05-22 10:18:19,412 [312] ERROR NHibernate.Util.ADOExceptionReporter - ORA-00920: operatore relazionale non valido
2006-05-22 10:18:19,412 [312] DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands :0
2006-05-22 10:18:19,428 [312] DEBUG NHibernate.Util.ADOExceptionReporter - error in FindBySQL
Oracle.DataAccess.Client.OracleException ORA-00920: operatore relazionale non valido in Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
in Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src)
in Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
in Oracle.DataAccess.Client.OracleCommand.System.Data.IDbCommand.ExecuteReader()
in NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
in NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
in NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
in NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
in NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters)
in NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes)
in NHibernate.Loader.SqlLoader.List(ISessionImplementor session, QueryParameters queryParameters)
in NHibernate.Impl.SessionImpl.FindBySQL(String sqlQuery, String[] aliases, Type[] classes, QueryParameters queryParameters, ICollection querySpaces)
2006-05-22 10:18:19,428 [312] WARN NHibernate.Util.ADOExceptionReporter - Oracle.DataAccess.Client.OracleException ORA-00920: operatore relazionale non valido in Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
in Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src)
in Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior)
in Oracle.DataAccess.Client.OracleCommand.System.Data.IDbCommand.ExecuteReader()
in NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
in NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
in NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
in NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
in NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters)
in NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes)
in NHibernate.Loader.SqlLoader.List(ISessionImplementor session, QueryParameters queryParameters)
in NHibernate.Impl.SessionImpl.FindBySQL(String sqlQuery, String[] aliases, Type[] classes, QueryParameters queryParameters, ICollection querySpaces)
2006-05-22 10:18:19,428 [312] ERROR NHibernate.Util.ADOExceptionReporter - ORA-00920: operatore relazionale non valido
and the query in my program is
SELECT DISTINCT ESAARKEY {Exams.ID} FROM ESAMI {Exams} WHERE SPKEY {Exams.MainCategoryID} = 'CHIRUR'
|