[Groonga-commit] groonga/grnci at 7efe98b [master] Change variable names.

Back to archive index

Susumu Yata null+****@clear*****
Thu Sep 14 17:58:24 JST 2017


Susumu Yata	2017-09-14 17:58:24 +0900 (Thu, 14 Sep 2017)

  New Revision: 7efe98bae779897bf13344b4702c8b1fcf4f1b64
  https://github.com/groonga/grnci/commit/7efe98bae779897bf13344b4702c8b1fcf4f1b64

  Message:
    Change variable names.

  Modified files:
    v2/db.go

  Modified: v2/db.go (+2 -2)
===================================================================
--- v2/db.go    2017-09-14 17:40:45 +0900 (fb6f3f7)
+++ v2/db.go    2017-09-14 17:58:24 +0900 (832acad)
@@ -517,11 +517,11 @@ func (db *DB) Load(tbl string, values io.Reader, options *DBLoadOptions) (int, e
 // appendRow appends the JSON-encoded row to buf nad returns the exetended buffer.
 func (db *DB) appendRow(body []byte, row reflect.Value, cfs []*ColumnField) []byte {
 	body = append(body, '[')
-	for i, fi := range cfs {
+	for i, cf := range cfs {
 		if i != 0 {
 			body = append(body, ',')
 		}
-		body = AppendJSONValue(body, row.Field(fi.Index))
+		body = AppendJSONValue(body, row.Field(cf.Index))
 	}
 	body = append(body, ']')
 	return body
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170914/9ba43b44/attachment.htm 



More information about the Groonga-commit mailing list
Back to archive index