diff --git a/main.go b/main.go index b6c5dd6..6e165d5 100644 --- a/main.go +++ b/main.go @@ -124,7 +124,7 @@ func loadDbEntries(ot string, id int64) map[string]metadataValues { log.Printf("Invalid object type: %s", ot) 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 { log.Printf("db.Query: %s\n", err.Error()) return entries