Macros are not identified.

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
easyblue
Posts: 64
Joined: Wed 02 Feb 2005 13:02
Location: Shanghai

Macros are not identified.

Post by easyblue » Wed 02 Dec 2009 16:42

Hello

version v6.90.0.53+BDS2006

with following SQL, the two macros are not able to be identified into Macros.

select *
from dpa
where dpa.PERIOD_START_TIME >=
to_date('&start_datetime', 'yyyymmddhh24')
and dpa.PERIOD_START_TIME <=
to_date('&end_datetime', 'yyyymmddhh24')

Please kindly check it

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

Post by Plash » Thu 03 Dec 2009 12:37

You cannot use macros inside string constants. Remove quotes from the macro name. Assing a value with quotes for the macro instead.

Post Reply