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

Strings with dots result in "Invalid generated Coq file" #81

Open
andrew4699 opened this issue Jan 1, 2020 · 0 comments
Open

Strings with dots result in "Invalid generated Coq file" #81

andrew4699 opened this issue Jan 1, 2020 · 0 comments

Comments

@andrew4699
Copy link

andrew4699 commented Jan 1, 2020

The following says "Invalid generated Coq file":

schema sch_flights(fid:int,
    month_id:int,
    day_of_month:int,
    day_of_week_id:int,
    carrier_id:string,
    flight_num:int,
    origin_city:string,
    origin_state:string,
    dest_city:string,
    dest_state:string,
    departure_delay:int,
    taxi_out:int,
    arrival_delay:int,
    canceled:int,
    actual_time:int,
    distance:int,
    capacity:int,
    price:int
);

schema sch_carriers
(
    cid:int,
    name:string
);

table Flights(sch_flights);
table Carriers(sch_carriers);

query a
`select distinct F.flight_num as flight_num
from Flights F, Carriers C
where F.carrier_id = C.cid
and C.name='xyz.'
`;

query b
`select distinct F.flight_num as flight_num
from Flights F, Carriers C
where F.carrier_id = C.cid
and C.name='xyz.'
`;

verify a b;

but removing the "." in "xyz." makes it work correctly (the queries are equivalent).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant