IDEMPIERE-3815 03_update_sequences.sql doesn't work when no sequence in oracle
This commit is contained in:
parent
9c5a53db6f
commit
dd530a71f4
|
@ -105,7 +105,12 @@ BEGIN
|
||||||
|| 'WHERE Name = '''
|
|| 'WHERE Name = '''
|
||||||
|| r.tablename
|
|| r.tablename
|
||||||
|| ''' AND istableid = ''Y''';
|
|| ''' AND istableid = ''Y''';
|
||||||
EXECUTE IMMEDIATE cmdseq INTO currentseq, currentseqsys;
|
BEGIN
|
||||||
|
EXECUTE IMMEDIATE cmdseq INTO currentseq, currentseqsys;
|
||||||
|
EXCEPTION
|
||||||
|
WHEN NO_DATA_FOUND THEN
|
||||||
|
DBMS_OUTPUT.PUT_LINE ('Sequence does not exist for table '|| r.tablename);
|
||||||
|
END;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
IF currentnextsys <> currentseqsys OR (currentnext <> currentseq AND Isnativeseqon ='N')
|
IF currentnextsys <> currentseqsys OR (currentnext <> currentseq AND Isnativeseqon ='N')
|
||||||
|
|
Loading…
Reference in New Issue