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

sqlite database issue: PDO: no such table: pragma_table_info #1223

Open
labsterx opened this issue May 9, 2021 · 1 comment
Open

sqlite database issue: PDO: no such table: pragma_table_info #1223

labsterx opened this issue May 9, 2021 · 1 comment

Comments

@labsterx
Copy link

labsterx commented May 9, 2021

This is for fatfree version 3.7.

When connecting to a sqlite database created with an older version of sqlite3 (for example, v 3.11.0 of sqlite3 on ubuntu), there will be an Internal Server Error with error message "PDO: no such table: pragma_table_info".

As it turned out, databases created by older versions of sqlite3 doesn't have the "pragma_table_info" table.

I don't think this table is critical for most applications using sqlite.

Therefore, I hope fatfree can ingore the missing table "pragma_table_info" so that it can be compatible with older version of sqlite databases.

@jauninp
Copy link

jauninp commented Nov 8, 2021

I have the same issue, but I try this command and It's working : pragma table_info("tableName");

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

2 participants