On 22-10-2022 19:30, Adriano dos Santos Fernandes wrote:
> On 22/10/2022 11:43, Mark Rotteveel wrote:
>>>
>>> I don't see why such an exception should be added. Reserved words are
>>> reserved words and need to be quoted. Such odd exceptions to the rules
>>> can cause issues in other tools that need to parse queries,
>
> That's another issue. We're in the very bad situation that drivers do
> things that makes core evolution difficult.
I wasn't even thinking about drivers, but about (third-party) tools,
possibly generic and not necessarily Firebird specific, that perform
query-parsing, e.g. for syntax highlighting, query transformation, etc.
[..]
>> Also, consider the confusion this yields for statements in a package
>> body calling other functions or procedures declared in that package body
>> (which would require quoting(!)).
>>
>> For consistency sake, I don't like it.
>>
>
> Since the definition of the routines still requires the double quotes,
> it's not a big deal.
Which introduces another inconsistency in rules for quoting object names
that is hard to explain to users.
> It's why I called it a side effect and not part of the feature.
I don't think the minor benefits of this (not needing to use quotes) are
worth it.
If you want to avoid quoting at all costs, maybe consider brainstorming
on those names to try and come up with alternatives that won't require
quoting.
Mark
--
Mark Rotteveel