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 > Data Access, Manipulation & Batch Languages > ANSI SQL > exception that does nothing?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-29-03, 13:23
wilconow wilconow is offline
Registered User
 
Join Date: Sep 2003
Location: Baltimore, MD
Posts: 8
Question exception that does nothing?

Hi,
I want to have an exception do nothing. or rather, I just want my trigger to ignore this problem, terminate the current block, and go on to the next one.

here is my code:

Code:
EXCEPTION
			 	WHEN NO_DATA_FOUND THEN
    				DBMS_OUTPUT.PUT_LINE ('');  -- do nothing.
currently, im getting the error below. I think it has to do with the DBMS overflowing

ORA-20000: ORU-10027: buffer overflow, limit of 20000 bytes
ORA-06512: at "SYS.DBMS_OUTPUT", line 35
ORA-06512: at "SYS.DBMS_OUTPUT", line 198
ORA-06512: at "SYS.DBMS_OUTPUT", line 139

thanks.

Last edited by wilconow; 10-29-03 at 14:09.
Reply With Quote
  #2 (permalink)  
Old 10-29-03, 14:22
wilconow wilconow is offline
Registered User
 
Join Date: Sep 2003
Location: Baltimore, MD
Posts: 8
Thumbs up

never mind, i believe i found out that you could just put 'null' instead of having dbms output, and the block terminates succesfully, without doing anything.
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