-->
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.  [ 1 post ] 
Author Message
 Post subject: Rows of a Result Set get Cut Off by Constant null Values
PostPosted: Tue Aug 04, 2009 7:40 am 
Newbie

Joined: Tue Aug 04, 2009 7:31 am
Posts: 1
Hi,

(I'm new to this forum, so my question might have already been answered, but using google and the forum search did not get me any further...)

I tried something like the following to insert a column containing null objects into my result set (HQL):
Code:
select a.name, null, a.date from Activity a


but the resulting columns are cut off after a.name (the resulting rows are only one element wide)

The same works with e.g. 0d to get a column with (double)0 values between a.name and a.date:
Code:
select a.name, 0d, a.date from Activity a


Is this a bug or intended behavior?

Regards,
Peter


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

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.