Page 1 of 1

Error: Empty macro or function name

Posted: Fri 19 Jul 2013 10:15
by Brob
I'm trying to run several ddl statements using TUniScript to create tables, sequences, views etc.

But I get this error when the UniScript tries to create a stored procedure containing "{" or "}"
If I have Uni.EnableUniSQL := false; I can create the stored procedure using TUniSQL but then I can only execute a single ddl statement.

Why does setting Uni.EnableUniSQL := false work for TUniSQL but not for TUniScript?

Re: Error: Empty macro or function name

Posted: Fri 19 Jul 2013 10:40
by Brob
Correction: Doesn't work for TUniSQL or TUniScript

Re: Error: Empty macro or function name

Posted: Fri 19 Jul 2013 11:31
by AndreyZ
Please specify the exact database server you are working with.

Re: Error: Empty macro or function name

Posted: Wed 24 Jul 2013 12:52
by Brob
Hi

I'm using OpenEdge Progress Database with ODBC Driver for Progress OpenEdge 11.1 and ODBCUniProvider.

Not sure if this helps but it has been raised before with Postgre database.
http://forums.devart.com/viewtopic.php? ... ction+name

Re: Error: Empty macro or function name

Posted: Thu 25 Jul 2013 10:20
by AlexP
Hello,

Thank you for the information, we have reproduced the problem. For the time being, to solve the problem, you should set this variable before initializing components, for example:

Code: Select all

program Project1;

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1},
  Uni;

{$R *.res}

begin
  uni.EnableUniSQL := false;
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.
We will fix this behaviour in the next build

Re: Error: Empty macro or function name

Posted: Thu 25 Jul 2013 10:49
by Brob
Many thanks Alex.

Re: Error: Empty macro or function name

Posted: Thu 25 Jul 2013 12:36
by AlexP
Hello,

If you have any other questions, feel free to contact us.