ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » using passthru with where clause

Post new topic  Reply to topic
 using passthru with where clause « View previous topic :: View next topic » 
Author Message
sudeepm
PostPosted: Mon Mar 17, 2008 9:19 pm    Post subject: using passthru with where clause Reply with quote

Acolyte

Joined: 31 Jan 2008
Posts: 57

Hi all,
there have been numerous posts on using passthru,but didnt actually find anything to help....
i am using passthru for a database query having a where clause,the problem is that the where clause is applied on a field of character type,my statement is:

Code:
statement = "SET OutputRoot.XML.Result[] = PASSTHRU('SELECT REPLAY_FLAG FROM DB2ADMIN.REP_TABLE WHERE REPLAY_FLAG = \'true\' ')";


this is what i get when i try creating an MbSQLStatement object using the above statement string:

Quote:
(com.ibm.broker.plugin.MbRecoverableException) <com.ibm.broker.plugin.MbRecoverableException class:JNI method:SqlParser::functionCallExpression source:BIPv600 key:2401 >


wasnt able to get any more details abt the exception,though i am sure this is coming because of the using the \(escape) character to put ' ' around the value "true" . i remove the where clause and the error is gone!!

please help me with this!
Back to top
View user's profile Send private message
sudeepm
PostPosted: Mon Mar 17, 2008 9:36 pm    Post subject: Reply with quote

Acolyte

Joined: 31 Jan 2008
Posts: 57

okay,problem solved using parameters.the statement goes this way:

statement = "SET OutputRoot.XML.Result[] = PASSTHRU('SELECT REPLAY_FLAG FROM DB2ADMIN.REP_TABLE WHERE REPLAY_FLAG = ? ','true')"

might help someone else like mine
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 18, 2008 2:33 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Nobody should do this, because nobody should use XML domain, only XMLNS or XMLNSC.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » using passthru with where clause
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.