This commit is contained in:
Your Name 2021-08-16 18:22:38 -04:00
parent d7ef1bb949
commit 23e8eecee7
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ func loadDbEntries(ot string, id int64) map[string]metadataValues {
log.Printf("Invalid object type: %s", ot) log.Printf("Invalid object type: %s", ot)
return entries return entries
} }
rows,err:=db.Query("select meta_key, meta_value from ? where ? = ?", table, column, id) rows,err:=db.Query("select meta_key, meta_value from $1 where $2 = $3", table, column, id)
if err != nil { if err != nil {
log.Printf("db.Query: %s\n", err.Error()) log.Printf("db.Query: %s\n", err.Error())
return entries return entries