-->
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: SELECT CURRENT_SERVER FROM sysibm.sysdummy1 - DB2
PostPosted: Thu Nov 12, 2009 3:24 pm 
Newbie

Joined: Thu Nov 12, 2009 2:26 pm
Posts: 2
The following formula works perfectly...

Code:
<property name="currentTimestamp" type="string" formula="( SELECT CURRENT TIMESTAMP FROM sysibm.sysdummy1 )"/>


...but this formula fails...

Code:
<property name="currentServer" type="string" formula="( SELECT CURRENT SERVER FROM sysibm.sysdummy1 )"/>


..with the following error...
DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=this_.server;0_, ( values(current;<space>, DRIVER=3.50.152

Why would CURRENT TIME, TIMESTAMP & DATE all work, but CURRENT SERVER (and many others) fail? (I also tried "values(current server)" with the same error)

Thx,
George


Top
 Profile  
 
 Post subject: Re: SELECT CURRENT_SERVER FROM sysibm.sysdummy1 - DB2
PostPosted: Thu Nov 12, 2009 3:26 pm 
Newbie

Joined: Thu Nov 12, 2009 2:26 pm
Posts: 2
One more thing, I can run all of the commands, as the same user, in my SQL tool, and they work just fine. It only fails when I move it to Hibernate.


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.