Ver código fonte

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 2 anos atrás
pai
commit
2fc2c14822
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      kernel/sql/history.go

+ 1 - 1
kernel/sql/history.go

@@ -50,7 +50,7 @@ func SelectHistoriesRawStmt(stmt string) (ret []*History) {
 
 
 func scanHistoryRows(rows *sql.Rows) (ret *History) {
 func scanHistoryRows(rows *sql.Rows) (ret *History) {
 	var history History
 	var history History
-	if err := rows.Scan(&history.Type, &history.Op, &history.Title, &history.Content, &history.Created, &history.Path); nil != err {
+	if err := rows.Scan(&history.Type, &history.Op, &history.Title, &history.Content, &history.Path, &history.Created); nil != err {
 		logging.LogErrorf("query scan field failed: %s\n%s", err, logging.ShortStack())
 		logging.LogErrorf("query scan field failed: %s\n%s", err, logging.ShortStack())
 		return
 		return
 	}
 	}