From 9d370bcb3ec9055b6292da5211f4eaee2458f520 Mon Sep 17 00:00:00 2001 From: Wenli Looi Date: Fri, 26 Apr 2024 02:53:11 -0700 Subject: [PATCH] Fix handling of unknown column types (#6540) --- scan.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scan.go b/scan.go index 415b9f0d74..e95e6d30bc 100644 --- a/scan.go +++ b/scan.go @@ -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 } } }