Correct query sql for issue report
This commit is contained in:
parent
cb37ca5077
commit
5ab24de4e8
@ -766,7 +766,7 @@ func (e *EWS) GetIssueReport(cfg cnf.Cfg, logger *log.Logger, host string, addr
|
|||||||
ri := new(ReportInfo)
|
ri := new(ReportInfo)
|
||||||
defect := ""
|
defect := ""
|
||||||
rows, err := dbo.Query(fmt.Sprintf(
|
rows, err := dbo.Query(fmt.Sprintf(
|
||||||
`SELECT usn,partno,sku,mo,line,location,ipaddr,relay,item,status,message,first_ack,last_ack,last_change,diffmins
|
`SELECT usn,partno,sku,mo,line,location,ipaddr,relay,item,status,message,last_change,diffmins
|
||||||
FROM %s;`, cfg.MySQL.IssuesView))
|
FROM %s;`, cfg.MySQL.IssuesView))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Printf("[ERR] %s; %s; %#v; %s\r\n", addr, uri, params, err.Error())
|
logger.Printf("[ERR] %s; %s; %#v; %s\r\n", addr, uri, params, err.Error())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user