dbTalk Databases Forums  

Problems catching Overflow 1426 jdbc

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Problems catching Overflow 1426 jdbc in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Carsten Broschek
 
Posts: n/a

Default Problems catching Overflow 1426 jdbc - 10-11-2008 , 02:15 AM






Hi,

during an simple INSERT into table in a stored function,
a ORA 1426 is raised. Thats OK, I already identified the
column that is exceeded.
I am surprised about the fact, that if I trigger my
stored function from sqlplus, my pl/sql routine catches
the exception and returns properly. The same trigger from
out an java-application via jdbc, seems not to catch
the overflow, does not end and I retrieve sqlexception
because of closed connection later on.

Snippet from pl/sql:

[...]
EXCEPTION
WHEN OTHERS THEN
BEGIN
ROLLBACK;
SP_LogError('SF_DO_SOMETHING ['||depotID_i||']',SQLERRM, SQLCODE);
commit;
RETURN FAILED;
END;
END SF_DO_SOMETHING;

Oracle: 10.1.0.5.0
Java: java version "1.5.0_12"

Thanks for hints in advance!

CARSTEN


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.