From d359f42b24397ef73a7025ee71f6eb5f508eabb8 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 30 Jun 2024 12:45:03 +1200 Subject: [PATCH] sqlite: support tables named using special characters --- db_sqlite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_sqlite.go b/db_sqlite.go index e55acfe..da2fb48 100644 --- a/db_sqlite.go +++ b/db_sqlite.go @@ -85,7 +85,7 @@ func (ld *sqliteLoadedDatabase) RenderForNav(f *TMainForm, ndata *navData) { // TODO // Select * with small limit - datar, err := ld.db.Query(`SELECT * FROM ` + tableName + ` LIMIT 1000`) // WARNING can't prepare this parameter, but it comes from the DB (trusted) + datar, err := ld.db.Query(`SELECT * FROM "` + tableName + `" LIMIT 1000`) // WARNING can't prepare this parameter, but it comes from the DB (trusted) if err != nil { vcl.ShowMessageFmt("Failed to load data for table %q: %s", tableName, err.Error()) return