TMSScript & division sign
Posted: Wed  26 Jun 2013 07:38
				
				Hello!
I found strange bug - i can't use division sign ('/') if it is only one at line.
I get "syntax error".
Simple example:
p.s.> I try to migrate from SDAC 5 to SDAC 6 Trial before buy it. Please help.
			I found strange bug - i can't use division sign ('/') if it is only one at line.
I get "syntax error".
Simple example:
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
var
  MSConnection: TMSConnection;
  MSScript: TMSScript;
begin
  MSConnection := TMSConnection.Create(Self);
  MSScript := TMSScript.Create(Self);
  try
    MSConnection.Authentication := auWindows;
    MSConnection.Server := 'db01';
    MSConnection.Database := 'master';
    MSConnection.LoginPrompt := False;
    MSScript.Connection := MSConnection;
    MSScript.SQL.Text := 'SELECT'#10#13 +
      '(10'#10#13 +
      '/'#10#13 +     // This line with error!
      '2) AS RES';
    MSScript.Execute;
  finally
    MSScript.Free;
    MSConnection.Free;
  end;
end;