From 23e8eecee7cdbec9163bf7999131c327178f738f Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 16 Aug 2021 18:22:38 -0400 Subject: [PATCH] sql --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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