fix mysql debug time

调试模式时间格式改为毫秒,原来是微秒.
This commit is contained in:
sth4me
2020-01-06 10:28:34 +08:00
committed by GitHub
parent bec9f5a847
commit eb31922124

View File

@ -45,9 +45,9 @@ func (bs *dbBase) doQuery(link dbLink, query string, args ...interface{}) (rows
query, args = formatQuery(query, args)
query = bs.db.handleSqlBeforeExec(query)
if bs.db.getDebug() {
mTime1 := gtime.TimestampMicro()
mTime1 := gtime.TimestampMilli()
rows, err = link.Query(query, args...)
mTime2 := gtime.TimestampMicro()
mTime2 := gtime.TimestampMilli()
s := &Sql{
Sql: query,
Args: args,