Skip to content

Commit

Permalink
Merge pull request #98 from jeehoonkim/master
Browse files Browse the repository at this point in the history
adding support for signed integer write functions fixes #97
  • Loading branch information
kshvakov authored Apr 7, 2018
2 parents 517b093 + 348b2bb commit 8a2dd1e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/data/block_write_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ func (block *Block) WriteDateTime(c int, v time.Time) error {
return block.buffers[c].Column.UInt32(uint32(v.Unix()))
}

func (block *Block) WriteInt8(c int, v int8) error {
return block.buffers[c].Column.Int8(v)
}

func (block *Block) WriteInt16(c int, v int16) error {
return block.buffers[c].Column.Int16(v)
}

func (block *Block) WriteInt32(c int, v int32) error {
return block.buffers[c].Column.Int32(v)
}

func (block *Block) WriteInt64(c int, v int64) error {
return block.buffers[c].Column.Int64(v)
}

func (block *Block) WriteUInt8(c int, v uint8) error {
return block.buffers[c].Column.UInt8(v)
}
Expand Down

0 comments on commit 8a2dd1e

Please sign in to comment.