sqlite: support tables named using special characters

This commit is contained in:
mappu 2024-06-30 12:45:03 +12:00
parent 7cec5cee4c
commit d359f42b24
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ func (ld *sqliteLoadedDatabase) RenderForNav(f *TMainForm, ndata *navData) {
// TODO // TODO
// Select * with small limit // 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 { if err != nil {
vcl.ShowMessageFmt("Failed to load data for table %q: %s", tableName, err.Error()) vcl.ShowMessageFmt("Failed to load data for table %q: %s", tableName, err.Error())
return return