DECLARE CONTINUE HANDLER FOR SQLEXCEPTION BEGIN 
	begin 
		get diagnostics condition 1  __err_msg = message_text; 
		SET __run_status = 0;  
	end ;