Add support for timestamps in pg writer

This commit is contained in:
Kuba Podgórski 2021-06-10 21:58:08 +02:00
parent 8f3c4705cc
commit b218901fae

View file

@ -367,6 +367,8 @@ func pgWriteRowser(w pg.QueryResultWriter, result pb.ToRowser) error {
case *pb.ColumnResponse_Uint64ArrayVal:
data, _ := json.Marshal(col.Uint64ArrayVal.Vals)
v = string(data)
case *pb.ColumnResponse_TimestampVal:
v = col.TimestampVal
default:
return errors.Errorf("unable to process value of type %T", col)
}