Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,958
    Thanks
    120
    Thanked 76 Times in 76 Posts

    stored proc error handlingh

    just did some testing, this:

    Code:
    DECLARE CONTINUE HANDLER FOR SQLEXCEPTION
    BEGIN
      set i_result = -1;
    END;
    is pointless, coz jou don't get out what caused error.

    Without that you can get the nature of error (in my case which part of sql caused error) in application part (call for stored proc)

    I'm thinking to remove all "FOR SQLEXCEPTION" from my stored procs.

    Any comment ?

    BTW: how to do something like that (if possible at all):
    Code:
    select message from (SHOW WARNINGS);
    Last edited by BubikolRamios; 03-31-2013 at 09:19 PM.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •