dbgate / dbgate

Database manager for MySQL, PostgreSQL, SQL Server, MongoDB, SQLite and others. Runs under Windows, Linux, Mac or as web application
https://dbgate.org
GNU General Public License v3.0
4.76k stars 279 forks source link

BUG: no such column: when opening sqlite database #135

Open charlesdaniels opened 3 years ago

charlesdaniels commented 3 years ago

Describe the bug

When opening some, but not all sqlite databases, I see an error message no such column:. These databases are known to work in Python's sqlite3 module and with sqlitebrowser.

To Reproduce

  1. Add the database as a connection
  2. Click on it

Expected behavior

The database opens correctly without error.

Screenshots

N/A

Version Information (please complete the following information):

Additional context

See attached the console output. After letting it sit for a few seconds, it dumps a bunch of JSON to the console as well.

dbgate.log

This issue seems to only trigger for databases that have views in them, so it may be related to how dbgate handles views in sqlite.

janproch commented 3 years ago

Thank you for bug report.

Unfortunately, I was unable to find a reason. I have no problem to open SQLite files with views in DbGate, when I was analysing log attached, it seems, that SQLite file you use is not supported by used driver.

It is possible to send me some SQLite file, which caused this error? It will be the simplest way, how to solve this. If not, I could add more detailed logging for this situation

And sorry for late response, I have some vacations in this season