Skip to content

Commit

Permalink
why is this not it
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 14, 2024
1 parent 794b655 commit 1915d9b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions flow/model/qrecord_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,14 @@ func (src *QRecordBatchCopyFromSource) Values() ([]interface{}, error) {
values[i] = v

case qvalue.QValueKindQChar:
v, ok := qValue.Value.(uint8)
if !ok {
src.err = fmt.Errorf("invalid \"char\" value")
return nil, src.err
}
values[i] = string(v)
/*
v, ok := qValue.Value.(uint8)
if !ok {
src.err = fmt.Errorf("invalid \"char\" value")
return nil, src.err
}*/
values[i] = "0"
// values[i] = string(v)

case qvalue.QValueKindString:
v, ok := qValue.Value.(string)
Expand Down

0 comments on commit 1915d9b

Please sign in to comment.