Skip to content

Commit

Permalink
skip all not String
Browse files Browse the repository at this point in the history
  • Loading branch information
glebvk85 committed Apr 15, 2021
1 parent 7927f67 commit f6ae24a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rows.go
Expand Up @@ -84,7 +84,7 @@ func (r *textRows) Next(dest []driver.Value) error {

// skip row before WITH TOTALS,
// not but do not skip an empty line if it is part of the result
if len(row) == 1 && row[0] == "" && (len(dest) != 1 || r.ColumnTypeDatabaseTypeName(0) != "String") {
if len(row) == 1 && row[0] == "" && (len(dest) != 1 || !strings.Contains(r.ColumnTypeDatabaseTypeName(0), "String")) {
row, err = r.tsv.Read()
if err != nil {
return err
Expand Down

0 comments on commit f6ae24a

Please sign in to comment.