Args.Params is Nil

I use these lines to get a trace of the SQL statements:

 TMSLogger.Trace(Args.SQL);
  for Param in Args.Params do begin
    TMSLogger.Trace(Param.ToString);
  end;

This is ok, even when the SQL has no params. But for "Alter" statements Args.Params is Nil, so I get an exception. I know, that I can test for Nil, but I´d like Args.Params to be initialized accordingly.

That's by design. You must check if Params is nil.