sql
This commit is contained in:
parent
a9fcec00f5
commit
5adef21a0e
1
main.go
1
main.go
|
@ -126,6 +126,7 @@ func loadDbEntries(ot string, id int64) map[string]metadataValues {
|
||||||
return entries
|
return entries
|
||||||
}
|
}
|
||||||
query:=fmt.Sprintf("select meta_key, meta_value from %s where %s = ?", table, column)
|
query:=fmt.Sprintf("select meta_key, meta_value from %s where %s = ?", table, column)
|
||||||
|
log.Println(query)
|
||||||
rows,err:=db.Query(query, 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())
|
||||||
|
|
Loading…
Reference in New Issue