Advanced usage of Macros

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
a-s-z
Posts: 106
Joined: Wed 03 Dec 2008 06:01

Advanced usage of Macros

Post by a-s-z » Wed 16 Sep 2009 10:53

Hello,

how do I use macros in a query without sticking to word boundaries?

I want to use a macro M_TAB=ATable and want to assemble column names by using the macro, i.e.

Code: Select all

select &(M_TAB)_ID ID, text from &M_TAB
should result in

Code: Select all

select ATable_ID ID, text from ATable
Currently the usage of brackets (or something similar) around the macro name does not seem to be possible :(

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 17 Sep 2009 07:53

Currently it is not possible.

We will investigate the possibility of implementing this feature.

jfudickar
Posts: 202
Joined: Fri 10 Mar 2006 13:03
Location: Oberursel / Germany

Post by jfudickar » Thu 17 Sep 2009 07:57

I would suggest to use the oracle mimic, stopping at the first ".".

In the syntax should be

Code: Select all

select &M_TAB._ID ID, text from &M_TAB 

Kind regards
Jens

Post Reply