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

[Bug] Schema references non-existing column #108

Open
michael-2956 opened this issue Sep 17, 2024 · 0 comments
Open

[Bug] Schema references non-existing column #108

michael-2956 opened this issue Sep 17, 2024 · 0 comments

Comments

@michael-2956
Copy link

michael-2956 commented Sep 17, 2024

In restaurant.sql:

...
CREATE TABLE IF NOT EXISTS "RESTAURANT" (
"ID" int,
"NAME" text,
"FOOD_TYPE" text,
"CITY_NAME" text,
"RATING" real,
primary key("ID"),
foreign key ("CITY_NAME") references `GEOGRAPHIC`("CITY_NAME")
);


CREATE TABLE IF NOT EXISTS "LOCATION" (
"RESTAURANT_ID" int,
...
foreign key ("RESTAURANT_ID") references `RESTAURANT`("RESTAURANT_ID")
);

RESTAURANT_ID is not present in the RESTAURANT table

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