fixes bug#AL-3524

master
wallace.henrique 2023-11-21 11:05:23 -03:00
parent 3844ae200b
commit 8612a51679
2 changed files with 19 additions and 7 deletions

View File

@ -1,7 +0,0 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVORGAOCONCEDENTE NUMBER(1,0)' ;
exception when column_exists then null;
end;

View File

@ -0,0 +1,19 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVORGAOCONCEDENTE NUMBER(1,0)' ;
exception when column_exists then null;
end;
/
declare
object_exists exception;
except_00957 exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_00957 , -00957);
begin
execute immediate 'ALTER TABLE PUNTO_VENTA RENAME COLUMN INDTAXACONVENIENCIAORGAOCONCEDENTE TO INDTAXACONVORGAOCONCEDENTE';
exception
when object_exists then null;
when except_00957 then null;
end;