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

Cannot open a database #247

Open
OMGerCoder opened this issue Dec 11, 2023 · 17 comments
Open

Cannot open a database #247

OMGerCoder opened this issue Dec 11, 2023 · 17 comments

Comments

@OMGerCoder
Copy link

Every time I try to open a database I get an error with the following message.
[12:21:29 PM][vscode-sqlite][ERROR] Failed to open database '[REDACTED]\test.db': Parse error near line 4: no such column: table
aster WHERE (type="table" OR type="view")
error here ---^

@grahamblandford
Copy link

Also having this issue. Using the latest Windows binary for SQLLite3.

@PorcoRosso85
Copy link

+1

@nicholasjamesrattigan
Copy link

Having the same issue as well.

[5:15:07 PM][vscode-sqlite][ERROR] Failed to open database 'c:\SQLite\Databases\sample_db.db': Parse error near line 4: no such column: table
aster WHERE (type="table" OR type="view")
error here ---^

@rgugs
Copy link

rgugs commented Feb 3, 2024

The extension worked before I downloaded SQLite and added a Path environmental variable, and now it doesn't work. Getting the same issue as posted here.

@philtreffer
Copy link

+1

1 similar comment
@Kh4N1
Copy link

Kh4N1 commented Feb 4, 2024

+1

@Teja0309
Copy link

Having the same issue as well.

[5:15:07 PM][vscode-sqlite][ERROR] Failed to open database 'c:\SQLite\Databases\sample_db.db': Parse error near line 4: no such column: table aster WHERE (type="table" OR type="view") error here ---^

How to resolve this issue?

@fjuren
Copy link

fjuren commented Apr 17, 2024

I had SQLite installed and ran into this error. Removing the path environment variable fixed the issue for me, but this doesn't seems like a temp fix.

@Kirill777-web
Copy link

Same issue !
Parse error near line 4: no such column: table
aster WHERE (type="table" OR type="view")

@GBognar
Copy link

GBognar commented Apr 23, 2024

+1

Neither when using latest SQLite 3 distro binary (3.45..3-1) on Arch Linux, nor when using latest precompiled binary (sqlite-tools-linux-x64-3450300.zip) downloaded from sqlite.org

@aimixsaka
Copy link

Related pr is #241
Can be resolved temporarily by setting explicitly sqlite executable path to the bundled one. (set "sqlite.sqlite3": "bundled sqlite3 binary path" in settings.json (bin path is /usr/bin/sqlite3 on mac)

@MZshnik
Copy link

MZshnik commented May 28, 2024

Related pr is #241 Can be resolved temporarily by setting explicitly sqlite executable path to the bundled one. (set "sqlite.sqlite3": "bundled sqlite3 binary path" in settings.json (bin path is /usr/bin/sqlite3 on mac)

Helps me

@eeskildsen
Copy link

eeskildsen commented Jun 4, 2024

Related pr is #241 Can be resolved temporarily by setting explicitly sqlite executable path to the bundled one. (set "sqlite.sqlite3": "bundled sqlite3 binary path" in settings.json (bin path is /usr/bin/sqlite3 on mac)

For those on Windows, the path is:

%userprofile%\.vscode\extensions\alexcvzz.vscode-sqlite-<version>\bin\sqlite-v<version>-<architecture>.exe

Copy it to the clipboard in PowerShell:

gci "$env:userprofile\.vscode\extensions\alexcvzz.vscode-sqlite-*\bin\sqlite*.exe" | % FullName | scb

Edit: Autocompletion wasn't working either. I switched to the SQLTools extension, which has SQLite support.

@sandrock
Copy link

Same issue on :

  • Manjaro, Code OSS 1.89.1
  • PopOS 22.04, VS Code 1.90.2 flatpak

Setting the full path to the sqlite3 did not work.

@vinooganesh
Copy link

Same issue here as well

@donpark
Copy link

donpark commented Aug 19, 2024

Seeing this error on macOS as well. SQLite database files that opens fine with 'SQLite Viewer' extension fails to open with this extension.

@bmaier
Copy link

bmaier commented Jan 1, 2025

Same error on MacBook. Have to switch to a different plugin https://marketplace.visualstudio.com/items?itemName=yy0931.vscode-sqlite3-editor

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