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 » SQLCODE

Post new topic  Reply to topic
 SQLCODE « View previous topic :: View next topic » 
Author Message
gmabrito
PostPosted: Thu May 01, 2003 1:51 pm    Post subject: SQLCODE Reply with quote

Apprentice

Joined: 19 Mar 2002
Posts: 35

I am having some problems with SQLCODE. WMQI 2.1 CSD4 to Oracle 8.1.6 inside a compute node. When I treat database warnings as errors I get returned SQLCODE=100 when the row that I am searching for exists and doesn't exist. When I uncheck that box SQLCODE=0 if the row exists or not. What I was expecting was with warnings as errors checked on a select where the row did not exist I would get a SQLCODE=100 and if it did exist I would get SQLCODE=0. Am I misinterpretting these variables? Thanks in advance.
Back to top
View user's profile Send private message
kirani
PostPosted: Thu May 01, 2003 9:15 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Where are checking this value of SQLCODE? Are you looking into ExceptionList or SQLCODE variables?
If you are looking into SQLCODE variable then you have to make sure you don't selct Throw Exception on Database Errors.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
bolek
PostPosted: Thu May 01, 2003 11:51 pm    Post subject: Re: SQLCODE Reply with quote

Apprentice

Joined: 25 Jul 2002
Posts: 35
Location: Germany

gmabrito wrote:
I am having some problems with SQLCODE. WMQI 2.1 CSD4 to Oracle 8.1.6 inside a compute node. When I treat database warnings as errors I get returned SQLCODE=100 when the row that I am searching for exists and doesn't exist. When I uncheck that box SQLCODE=0 if the row exists or not. What I was expecting was with warnings as errors checked on a select where the row did not exist I would get a SQLCODE=100 and if it did exist I would get SQLCODE=0. Am I misinterpretting these variables? Thanks in advance.


It is a known problem. Currently, in your case, if the SQLCODE value is 0 or 100, you should check using ESQL whether any rows were returned by the SELECT.
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 » SQLCODE
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.