aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2018-11-22 01:48:38 +0900
committerGitHub <noreply@github.com>2018-11-22 01:48:38 +0900
commit873ec5700501bf28c8e6afd40344776235403c03 (patch)
treeb421208f4ee885b0e5fb2c3fd57f8504525c5016 /sqlite3.go
parentMerge pull request #644 from akalin/fix-pointer-conversion (diff)
parentFix bug (diff)
downloadgolite-873ec5700501bf28c8e6afd40344776235403c03.tar.gz
golite-873ec5700501bf28c8e6afd40344776235403c03.tar.xz
Merge pull request #643 from akalin/zero-length-blob
Distinguish between NULL and zero-length blobs on query
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 838a5df..df3258a 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -2024,7 +2024,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 := C.sqlite3_column_bytes(rc.s.s, C.int(i))