Skip to content

Commit

Permalink
Fix handling of unknown column types (#6540)
Browse files Browse the repository at this point in the history
  • Loading branch information
looi authored Apr 26, 2024
1 parent 7892019 commit 9d370bc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ func Scan(rows Rows, db *DB, mode ScanMode) {
continue
}
}
values[idx] = &sql.RawBytes{}
var val interface{}
values[idx] = &val
} else {
values[idx] = &sql.RawBytes{}
var val interface{}
values[idx] = &val
}
}
}
Expand Down

0 comments on commit 9d370bc

Please # to comment.