Skip to content

Commit

Permalink
-applicationid AUTO fixed
Browse files Browse the repository at this point in the history
Changed to call this when AUTO is passed
   begin apex_application_install.GENERATE_APPLICATION_ID(); end;
  • Loading branch information
krisrice committed Jan 10, 2017
1 parent c732d4e commit 2b677c2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sqlcl/examples/apximp.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function ApexImport() {
// various SQL we'll need later
wsID : "begin apex_application_install.SET_WORKSPACE_ID( P_WORKSPACE_ID => :workspaceID ); end;",
appID: "begin apex_application_install.SET_APPLICATION_ID( P_APPLICATION_ID => :appID); end;",
appGenID : "begin apex_application_install.GENERATE_APPLICATION_ID(); end;",
offset : "begin apex_application_install.SET_OFFSET( P_OFFSET => :offset ); end;",
schema : "begin apex_application_install.SET_SCHEMA( P_SCHEMA => :schema ); end;",
appName: "begin apex_application_install.SET_APPLICATION_NAME( P_APPLICATION_NAME => :appName ); end;",
Expand Down Expand Up @@ -180,7 +181,11 @@ function ApexImport() {

}
if (this.options.appID ){
util.execute(this.sql.appID,this.options);
if (this.options.appID.equals('AUTO') ) {
util.execute(this.sql.appGenID,this.options);
} else {
util.execute(this.sql.appID,this.options);
}
}
if ( this.options.offset ){
util.execute(this.sql.offset,this.options);
Expand Down Expand Up @@ -278,7 +283,7 @@ CommandRegistry.addForAllStmtsListener(APEXImportCommand.class);
/*
script
var a = new ApexImport();
var myoptions = ["-file","f102.sql","-offset","123","-name","Kris","-alias","rice","-installSupportingObjects" ];
var myoptions = ["-expWorkspace","-replace"];
a.run(myoptions);
/
Expand Down

0 comments on commit 2b677c2

Please sign in to comment.