From ab4f1745f3ee0773f85605b6dfe45ced25d0274d Mon Sep 17 00:00:00 2001 From: Frederick Akalin Date: Sat, 22 Sep 2018 11:23:19 -0700 Subject: [PATCH] Fix bug --- sqlite3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3.go b/sqlite3.go index b17e634..f29be13 100644 --- a/sqlite3.go +++ b/sqlite3.go @@ -1987,7 +1987,7 @@ func (rc *SQLiteRows) Next(dest []driver.Value) error { case C.SQLITE_BLOB: p := C.sqlite3_column_blob(rc.s.s, C.int(i)) if p == nil { - dest[i] = nil + dest[i] = []byte{} continue } n := int(C.sqlite3_column_bytes(rc.s.s, C.int(i)))