Skip to content

Commit

Permalink
Gnx: fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Apr 8, 2015
1 parent 74d342a commit ca16fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go2/gnx/gnx.go
Expand Up @@ -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,
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ca16fca

Please sign in to comment.