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

Cannot get table Primary Key in query #181

Open
josh9060 opened this issue Feb 21, 2020 · 0 comments
Open

Cannot get table Primary Key in query #181

josh9060 opened this issue Feb 21, 2020 · 0 comments

Comments

@josh9060
Copy link

josh9060 commented Feb 21, 2020

Hi all,

I am using room for persistence.

I have a table Holiday that has a PK holidayId.

This query does not work: SELECT holidayId FROM holiday.

I get this error: no such column: holiday (Sqlite code 1 SQLITE_ERROR): , while compiling: SELECT [holiday]Id FROM [holiday], (OS error - 2:No such file or directory).

However, in that error it clearly identifies the column name: 0: {isPrimary: true, title: "holidayId"}.

If I get another column in the query, e.g. date - SELECT date FROM holiday - it works.

Any help would be appreciated.

@josh9060 josh9060 changed the title Cannot get table Primary Key Cannot get table Primary Key in query Feb 21, 2020
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