Hello, I'm using odac 6 and delphi 6.
I'm running some dml scripts using OraScript.
After executing "create force view .." I'm getting compilation warnings.
Is there any way to suppress compilation warnings when creating views or pl/sql units in OraScript?
OraScript compilation warnings
You can you the OnError event of TOraScript. Check Exception parameter that are passed to the event handler to detect compilation error, and set Action parameter to eaContinue to ignore error.
Code: Select all
uses
OraError;
procedure TForm1.OraScript1Error(Sender: TObject; E: Exception;
SQL: String; var Action: TErrorAction);
begin
if (E is EOraError) and (EOraError(E).ErrorCode = 24344) then
Action := eaContinue;
end;Thanks for you reply.
Now, I'm using exact the same solution.
But when I was using ODAC 4, I've run the same scripts and havn't got compilation errors.
The problem with capturing error codes that I can get
00904 (view based on nonexistent package variable),
04063 (view based on nonvalid view),
24344 (package uses nonexistent package).
So, is there any way to ignore warnings but no errors?
Now, I'm using exact the same solution.
But when I was using ODAC 4, I've run the same scripts and havn't got compilation errors.
The problem with capturing error codes that I can get
00904 (view based on nonexistent package variable),
04063 (view based on nonvalid view),
24344 (package uses nonexistent package).
So, is there any way to ignore warnings but no errors?