helpers.warn('Automatically generated name "'+result+'" exceeds '+limit+' character limit for Oracle. Using base64 encoded sha1 of that name instead.');
// generates the sha1 of the name and encode it with base64
result=crypto.createHash('sha1')
.update(result)
.digest('base64')
.replace('=','');
}
returnresult;
}
functionwrapSqlWithCatch(sql,errorNumberToCatch){
return"begin execute immediate '"+sql.replace(/'/g,"''")+"'; exception when others then if sqlcode != "+errorNumberToCatch+" then raise; end if; end;";