diff options
author | mattn <mattn.jp@gmail.com> | 2018-11-22 01:48:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-22 01:48:38 +0900 |
commit | 873ec5700501bf28c8e6afd40344776235403c03 (patch) | |
tree | b421208f4ee885b0e5fb2c3fd57f8504525c5016 /sqlite3.go | |
parent | Merge pull request #644 from akalin/fix-pointer-conversion (diff) | |
parent | Fix bug (diff) | |
download | golite-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |