Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Ask a question or Report a Bug
 WhereScape Forum : Make a Posting : Ask a question or Report a Bug
Topic: db2 cursor load compile error Post Reply Post New Topic
Author Message
Gerry Schuil
RED Users
RED Users

LIC

Joined: 17 November 2008
Location: New Zealand
Online Status: Offline
Posts: 58
Quote Gerry Schuil Replybullet Topic: db2 cursor load compile error
    Posted: 11 September 2009 at 12:57pm
The Set Merge option with cursor load appears to generate invalid code. I get the following compile error on the load of the second stage table:
 
--E--line 209-- [IBM][CLI Driver][DB2/SUN64] SQL0590N Name "V_RESULT_CURSOR" specified in context "UPDATE_OWNER_HERD_004_STAGE" is not unique.

--E--line 209-- LINE NUMBER=209. SQLSTATE=42734

If I change the name of the cursor for the second load, then it compiles ok.
IP IP Logged
aaron
WhereScape Consulting
WhereScape Consulting

WhereScape Software Limited.

Joined: 13 October 2005
Online Status: Offline
Posts: 600
Quote aaron Replybullet Posted: 11 September 2009 at 1:38pm
Isn't it just the 2nd allocate that needs to be removed rather than renaming ?
 
Also for merge, looks like the final results are only showing for the last source table not the sum of each of the tables  :-(
IP IP Logged
Gerry Schuil
RED Users
RED Users

LIC

Joined: 17 November 2008
Location: New Zealand
Online Status: Offline
Posts: 58
Quote Gerry Schuil Replybullet Posted: 11 September 2009 at 2:10pm
You're right. Removing the 2nd allocate takes care of the problem. To get the sum of the inserts, change the 2nd SET to:

SET v_insert_count = v_insert_count + v_rows_committed;

IP IP Logged
Support
WhereScape Support
WhereScape Support

Wherescape Support

Joined: 01 September 2005
Online Status: Offline
Posts: 3109
Quote Support Replybullet Posted: 11 September 2009 at 3:48pm
We will remedy both these inssues in a future release
 
 
IP IP Logged
Support
WhereScape Support
WhereScape Support

Wherescape Support

Joined: 01 September 2005
Online Status: Offline
Posts: 3109
Quote Support Replybullet Posted: 01 October 2009 at 8:55am
These issues have been resolved in version 6.0.6.0
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.063 seconds.