sql
This commit is contained in:
1 parent
d9c4801be5
commit
a9fcec00f5
1 file changed
+2
-2
@@ -125,8 +125,8 @@ 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
|
||||||
}
|
}
|
||||||
query:=fmt.Sprintf("select meta_key, meta_value from %s where ? = ?", table)
|
query:=fmt.Sprintf("select meta_key, meta_value from %s where %s = ?", table, column)
|
||||||
rows,err:=db.Query(query, column, id)
|
rows,err:=db.Query(query, 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
|
||||||
|
|||||||
Reference in new issue
Block a user