If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Chit Chat > sqlca.sqlcode not returning code 100 when count zero.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-10-03, 10:22
rpkeskar rpkeskar is offline
Registered User
 
Join Date: Sep 2003
Posts: 1
Question sqlca.sqlcode not returning code 100 when count zero.

I am fairly new to DB2 and am currently working on an issue where there is a simple code written through C/C++ to access DB2 information.

There is a small piece of code that just runs a SQL query as Select count(*) into countid from table where XXX=xxx
Here we know the count is zero and I guess DB2 should return sqlca.sqlcode as 100, in such a case. But we are getting sqlca.sqlcode as Zero.

Please advice what could be wrong.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On