-->
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: NULL IS NULL check, solution asked for maxdb
PostPosted: Thu Mar 04, 2010 7:22 am 
Newbie

Joined: Thu Mar 04, 2010 7:12 am
Posts: 2
Hello,

I'm using Liferay (which is using Spring + Hibernate I guess). And I receive some problems which are related to the NULL IS NULL check.

So Liferay know some issues for DB2 and sybase, but I want to find a solution for maxdb

The solution for DB2 should be to set next properties:
custom.sql.function.isnull=CAST(? AS VARCHAR(32672)) IS NULL
custom.sql.function.isnotnull=CAST(? AS VARCHAR(32672)) IS NOT NULL

and for sybase the solution is :
custom.sql.function.isnull=ISNULL(?, '1')='1'
custom.sql.function.isnotnull=ISNULL(?, '1')='0'

I was looking in the documentation for maxdb, and try already next things:

1)
custom.sql.function.isnull=? IS NULL
custom.sql.function.isnotnull= ? IS NOT NULL
=> not working

2)
custom.sql.function.isnull=value(?, '1') = '1'
custom.sql.function.isnotnull=value(?,'0')!='1'
=> Not working, but I guess this function value is the one I need, only I don't know how to set (especially in the isnotnull property...)


anybody can help me?


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.