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

Sqlite3 strict table syntax error #219

Open
tianjianchn opened this issue Oct 8, 2022 · 2 comments
Open

Sqlite3 strict table syntax error #219

tianjianchn opened this issue Oct 8, 2022 · 2 comments

Comments

@tianjianchn
Copy link

When trying to open an database file with strict table enabled, it said

Failed to open database '/path/to/db.sqlite3': malformed database schema (metadata) - near "strict": syntax error

For strict table, see https://www.sqlite.org/stricttables.html

@Azarattum
Copy link

I've also encountered this issue when trying to open an SQLite database created with cr-sqlite extension which uses STRICT modifier for its internal table.

[vscode-sqlite][ERROR] Failed to open database '.\data\todo.db': malformed database schema (crsql_tracked_peers) - near "STRICT": syntax error

@tantaman
Copy link

Looks like the problem is that vscode-sqlite is linked against an old version of SQLite.

Strict mode was introduced in version 3.37 where this extension is using 3.26 (https://github.com/AlexCovizzi/vscode-sqlite/tree/master/bin). Current version is 3.40.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

3 participants