[Groonga-commit] groonga/grnxx at ca16fca [master] Gnx: fix typos.

Back to archive index

susumu.yata null+****@clear*****
Wed Apr 8 20:21:55 JST 2015


susumu.yata	2015-04-08 20:21:55 +0900 (Wed, 08 Apr 2015)

  New Revision: ca16fcab0ca773e557d8d398f972108290ca46e8
  https://github.com/groonga/grnxx/commit/ca16fcab0ca773e557d8d398f972108290ca46e8

  Message:
    Gnx: fix typos.

  Modified files:
    go2/gnx/gnx.go

  Modified: go2/gnx/gnx.go (+2 -2)
===================================================================
--- go2/gnx/gnx.go    2015-04-08 18:21:00 +0900 (ed09907)
+++ go2/gnx/gnx.go    2015-04-08 20:21:55 +0900 (17f96e4)
@@ -1070,7 +1070,7 @@ func (db *DB) InsertRow(tableName string, key Valuer) (bool, Int, error) {
 		return false, NAInt(), fmt.Errorf("gnx_insert_row() failed")
 	}
 	rowID = ((rowID - 1) * C.gnx_int(len(db.groongaDBs))) + C.gnx_int(dbID) + 1
-	return inserted == C.GNX_TRUE, Int(rowID), err
+	return inserted == C.GNX_TRUE, Int(rowID), nil
 }
 
 func (db *DB) SetValue(tableName string, columnName string, rowID Int,
@@ -1172,7 +1172,7 @@ func (db *DB) InsertRow2(table *Table, key Valuer) (bool, Int, error) {
 		return false, NAInt(), fmt.Errorf("gnx_insert_row() failed")
 	}
 	rowID = ((rowID - 1) * C.gnx_int(len(db.groongaDBs))) + C.gnx_int(dbID) + 1
-	return inserted == C.GNX_TRUE, Int(rowID), err
+	return inserted == C.GNX_TRUE, Int(rowID), nil
 }
 
 func (db *DB) SetValue2(column *Column, rowID Int, value Valuer) error {
-------------- next part --------------
HTML����������������������������...
Download 



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