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 > Database Server Software > DB2 > Error 901 when using INSTEAD OF TRIGGER

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-10, 07:51
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Error 901 when using INSTEAD OF TRIGGER

Hi Friends,

While trouble shooting an issue (another post Any help on this error. . . ), I came across some strange db2 behavior.

When I created a view on a view on a table and the middle one had an instead of trigger to insert data in base table. The inserts are failing with error. However if I drop the trigger OR if I create same trgger on front-end view then the inserts work fine.
To me this seems like a bug.Still want have an advice from someone having such experience.

More to be surpised . . . the update instead of trigger works fine on same view.

The Error

Quote:
D:\SGILL\JunLi>db2 insert into client (GIVEN_NAME) values ('00000')

DB21034E The command was processed as an SQL statement because it was not a

valid Command Line Processor command. During SQL processing it returned:

SQL0901N The SQL statement failed because of a non-severe system error.

Subsequent SQL statements can be processed. (Reason "parent in 1-1 rel.

already has child".) SQLSTATE=58004
DB2 V9.5.5 on Win2K3

Please see the attached script and let me know if it works on your setup.

Regards

DBFinder

PS: Attached file have been submitted to IBM software support
Attached Files
File Type: txt 15.test-drp.sql.txt (1.4 KB, 47 views)

Last edited by DBFinder; 01-31-10 at 19:44. Reason: Simplified test example
Reply With Quote
  #2 (permalink)  
Old 02-01-10, 05:42
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
SQL0901 is typically a bug in DB2. Please call IBM support and open a PMR. That's the only option you have on this.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 02-02-10, 02:34
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
IBM has notfied me that they were able to replicate the error. They agreed that this is a db2 bug. They are still trying to locate the code.

Regards
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