-->
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: Formula for boolean types possible?
PostPosted: Sun Aug 08, 2010 9:04 am 
Newbie

Joined: Sat Mar 20, 2010 7:26 am
Posts: 6
Hi,

I ought to use the following formula to determine whether a process has ended (the type of its last event is 10)
Code:
SELECT (e.type = 10) FROM event e WHERE e.id = (SELECT MAX(e.id) FROM event e WHERE e.process_id = id)

In my application, I get a null value here.
When use this directly on the underlying MYSQL DB however, this returns 0 or 1.

Is it possible at all to define formulas / derived properties for fields with boolean types?

Thanks
fatzopilot


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.