Subject | Re: [Firebird-Architect] XSQLDA/XSQLVAR issues |
---|---|
Author | Dmitry Yemanov |
Post date | 2005-01-10T20:00:31Z |
"Jim Starkey" <jas@...> wrote:
Also, could you please provide an example for your "precedence over an earlier context" wording? I feel some misunderstanding from my side here.
After more thinking, it seems I don't want any preference/precedence logic. Any ambiguity should be detected and reported. Subquery column aliases are not visible in parent contexts, so no problem here. If "earlier context" means the same scope level, then IMO column aliases shouldn't be prefered in any order. But I may be missing something obvious.
Dmitry
>I'd better understand you with some SQL example provided ;-)
> Suppose you used an alias without ambiguity in a query. Then you
> dropped that query into another as a subquery where the parent select
> had a table in the from clause that conflicted with the alias.
Also, could you please provide an example for your "precedence over an earlier context" wording? I feel some misunderstanding from my side here.
After more thinking, it seems I don't want any preference/precedence logic. Any ambiguity should be detected and reported. Subquery column aliases are not visible in parent contexts, so no problem here. If "earlier context" means the same scope level, then IMO column aliases shouldn't be prefered in any order. But I may be missing something obvious.
Dmitry