Fix handling of unknown column types (#6540)

This commit is contained in:
Wenli Looi 2024-04-26 02:53:11 -07:00 committed by GitHub
parent 78920199f0
commit 9d370bcb3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -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
}
}
}