Bad Idea: Added support for macros names in which first symbol is digit

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
alec
Posts: 20
Joined: Wed 24 Aug 2005 09:28
Location: Africa

Bad Idea: Added support for macros names in which first symbol is digit

Post by alec » Tue 12 Sep 2006 06:30

Hi!
Macros is good thing, but you can't remember about & (Bitwise AND).
My valid T-SQL query (SELECT PERMISSIONS(OBJECT_ID('Users'))&26; )
now not valid in SDAC. Because it converted to: SELECT PERMISSIONS(OBJECT_ID('Users'));

It can be solved using whitespaces: SELECT PERMISSIONS(OBJECT_ID('Users')) & 26;
but I think it's not right behavior.

Thank you.

tinof
Posts: 39
Joined: Fri 16 Dec 2005 07:41

Post by tinof » Tue 12 Sep 2006 10:43

Hi alec,

checkout variable MacroChar (Unit DBAccess).

Hth
Tino

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Tue 12 Sep 2006 13:45

Thank you for information, we have reproduced the problem and fixed it.
This fix will be available in the next SDAC build.
As a temporary solution you can insert space between '&' symbol and number.
In other words, you can write
SELECT PERMISSIONS(OBJECT_ID('Users')) & 26
instead of
SELECT PERMISSIONS(OBJECT_ID('Users'))&26

Post Reply