Error: Empty macro or function name

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Error: Empty macro or function name

Post by Brob » Fri 19 Jul 2013 10:15

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?

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: Error: Empty macro or function name

Post by Brob » Fri 19 Jul 2013 10:40

Correction: Doesn't work for TUniSQL or TUniScript

AndreyZ

Re: Error: Empty macro or function name

Post by AndreyZ » Fri 19 Jul 2013 11:31

Please specify the exact database server you are working with.

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: Error: Empty macro or function name

Post by Brob » Wed 24 Jul 2013 12:52

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

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Error: Empty macro or function name

Post by AlexP » Thu 25 Jul 2013 10:20

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

Brob
Posts: 44
Joined: Mon 24 Oct 2011 07:31

Re: Error: Empty macro or function name

Post by Brob » Thu 25 Jul 2013 10:49

Many thanks Alex.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Error: Empty macro or function name

Post by AlexP » Thu 25 Jul 2013 12:36

Hello,

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

Post Reply