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

Use SQL to read and write to a database #65

Open
AndreaBruno97 opened this issue Sep 19, 2024 · 0 comments
Open

Use SQL to read and write to a database #65

AndreaBruno97 opened this issue Sep 19, 2024 · 0 comments

Comments

@AndreaBruno97
Copy link

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-sql?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-6-pathway-1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-sql#5

In which task and step of the codelab can this issue be found?
Task 6, section "Logical operators with WHERE clauses"

Describe the problem
The task requests the execution of the following query:
"SELECT * FROM email
WHERE folder = 'inbox' AND read = false;"
The column "read", however, is of type INTEGER, and not BOOLEAN, and thus the query fails.

The correct query would be
"SELECT * FROM email
WHERE folder = 'inbox' AND read = 0;"

Steps to reproduce?

  1. Go to the link
  2. Reach the section "Logical operators with WHERE clauses"
  3. See error in point 1.
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