Dear All,
I have IDS 9.3 on sun solaris 8. My database is created with buffered logging.
I execute the below steps in dbaccess
begin work;
execute procedure 1;
execute procedure 2;
commit work;
If there is an error in procedure 2 it should ever rollback the procedure 1 statement.
Another example -
begin work;
insert into emp (emp_id, name) values (1, "jack);
insert into emp (emp_id, name) values (2, "tom);
insert into employee (emp_id, name) values (3, "tom);
commit work;
I have wrongly written entered the table name in the third sql statement.
The above query inserts 2 records in emp table and gives an error for table not found in the third statement. I would want the statement to behave in such a way that if there is an error in the third statement, it should not insert the data in the frist two statements. I have also set the env variable DBACCNOIGN to 1, but still no luck. It still inserts data through the first 2 statements and gives an error. Any workarounds. Appreciate ur feedback.
Regards,
lloyd