Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in SQL query #436

Closed
Michiel-s opened this issue May 23, 2016 · 1 comment
Closed

Error in SQL query #436

Michiel-s opened this issue May 23, 2016 · 1 comment
Assignees
Labels
ampersand in ampersand ampersand description in .adl files (formal ampersand) bug Indicates an unexpected problem or unintended behavior component:prototype generator

Comments

@Michiel-s
Copy link
Member

The following VIEW statement results in a strange sql query:

VIEW "PAVS": Variable
{ "Promise": varPromise;V;'P'[Message]
} ENDVIEW
/* case: (ECps es), with two or more elements in 
es.varPromise;V[Variable*Message];'P'[Message] */ select distinct 
fence0.src as src, fence2.tgt as tgt from (select distinct "Variable" 
as src, "varPromise" as tgt from "Variable" where "Variable" IS 
NOT NULL AND "varPromise" IS NOT NULL) as fence0, (/* case: 
EMp1 val c */ select distinct "Message" as src, "Message" as tgt 
from "Message" where "Message" = 'P') as fence2 
where 'pole0_..;EDcV' = 'pole0_..;EDcV' AND 'pole1_EDcV;..' = 'pole1_EDcV;..'

The last line doesn't make sense at all.

where 'pole0_..;EDcV' = 'pole0_..;EDcV' AND 'pole1_EDcV;..' = 'pole1_EDcV;..
@Michiel-s Michiel-s added bug Indicates an unexpected problem or unintended behavior component:prototype generator ampersand in ampersand ampersand description in .adl files (formal ampersand) labels May 23, 2016
@hanjoosten
Copy link
Member

I agree that it is wierd, but it is correct. (The where-part can be rewritten to True). I will change this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ampersand in ampersand ampersand description in .adl files (formal ampersand) bug Indicates an unexpected problem or unintended behavior component:prototype generator
Projects
None yet
Development

No branches or pull requests

2 participants