These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: NH 1.2.1 Beta1 Possibile Bug: IQuery.ReturnTypes with SQL
PostPosted: Mon Dec 11, 2006 8:21 am 
Newbie

Joined: Tue Oct 24, 2006 2:51 pm
Posts: 19
NH 1.2. beta1
SQL Server 2000

IQuery q = m_Session.GetNamedQuery(QueryName);
NHibernate.Type.IType[] nTypes = q.ReturnTypes;

Note that <q> instance returned is a SQLQueryImpl, the named query i'm asking for is a SQL Query with <return-alias> and so on

It's a bug or i'm missing something?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 11, 2006 8:28 am 
Newbie

Joined: Tue Oct 24, 2006 2:51 pm
Posts: 19
Oh i forgot to write that the ReturnTypes threw this exception:

{"query must begin with SELECT or FROM: exec [exec EGroupEventProcess_ByGroup :GroupId]"}

(note that exec EGroupEventProcess_ByGroup is a SP call)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.