|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SELECT STATEMTENT RETURNS NULL AT RANDOM INTERVALS |
« View previous topic :: View next topic » |
Author |
Message
|
surenat |
Posted: Mon Dec 12, 2005 8:47 pm Post subject: SELECT STATEMTENT RETURNS NULL AT RANDOM INTERVALS |
|
|
Apprentice
Joined: 01 Jan 2002 Posts: 32
|
Hi :
While processing 1000 messages, around 20 of them are failing becuase the following the query is returning null:
PASSTHRU('SELECT USER FROM DUAL;');
Is there anybody who had experianced the same problem ?, why would this function return null ?.
Any help would be appreciated .
Broker is running on:
Broker : WBIMB 5.0
OS : AIX 5.2
Broker db : DB2
Applicaiton db: ORacle 9.2
-Thanks
Suresh _________________ IBM Certified Specialist MQSeries
IBM Certified Specialist - Websphere MQ Integrator |
|
Back to top |
|
 |
elvis_gn |
Posted: Mon Dec 12, 2005 9:00 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi surenat,
It is returning NULL since your Query is returning NULL
I think you need to tell us what ur trying to do using
Code: |
PASSTHRU('SELECT USER FROM DUAL;'); |
I suppose the query is returning 1000 values which you are storing in a list or something.
Check what the 20 which are failing are returning, if its returning NULL then handle it.
I've not tried a COALESCE on a PASSTHRU, but it should work
Regards. |
|
Back to top |
|
 |
JT |
Posted: Tue Dec 13, 2005 8:22 am Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
......also, post your ESQL code.
BTW, you don't need that semi-colon at the end of your enclosed SQL statement:
Code: |
PASSTHRU('SELECT USER FROM DUAL'); |
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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 You cannot vote in polls in this forum
|
|
|
|