2

I'm setting up CI using Github Actions and SQLite3 it's failing to insert on Github Actions but not on a local machine.

The line that fails is:

conn.execute("INSERT INTO sessions VALUES (?, ?, FALSE, NULL, ?)", [new_auth_token, device_id, expire_date])

This line is executed a few times in diferent tests succesfully, but then it fails in the rest of the tests (Always the same tests fail) with the next error.

sqlite3.OperationalError: no such column: FALSE

I'm using python3.8 and I've tried it on my computer with a fresh install of python and clone of the repository, but it never fails locally, only on GithuActions.

3
  • Try using QueryBuilder.substitutions to generate booleans, that will probably fix it. Commented May 15, 2020 at 21:37
  • What does your workflow file look like? What does your test setup look like? Commented May 16, 2020 at 20:41
  • I have the same issue. Did you resolve it? Commented Mar 4, 2021 at 2:28

1 Answer 1

2

What fixed the problem for me is in my YAML workflow, replacing

runs-on: ubuntu-latest 

with

runs-on: ubuntu-20.04

ubuntu-latest uses Ubuntu 18.04 and the SQLite version seems to be old and have an issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.