aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2018-06-12 18:20:33 +0900
committerGitHub <noreply@github.com>2018-06-12 18:20:33 +0900
commitecf0c3a82825782e97d35257fb266b238cfebc2e (patch)
treebbd1a9b275f9943a2138d4d421c25c223587bc53 /sqlite3.go
parentMerge pull request #574 from GJRTimmer/update/travis (diff)
parentfix/118 (diff)
downloadgolite-ecf0c3a82825782e97d35257fb266b238cfebc2e.tar.gz
golite-ecf0c3a82825782e97d35257fb266b238cfebc2e.tar.xz
Merge pull request #591 from mattn/fix/118
fix/118
Diffstat (limited to 'sqlite3.go')
-rw-r--r--sqlite3.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/sqlite3.go b/sqlite3.go
index 17291dc..d8fe4b0 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -1937,8 +1937,6 @@ func (rc *SQLiteRows) Next(dest []driver.Value) error {
}
n := int(C.sqlite3_column_bytes(rc.s.s, C.int(i)))
switch dest[i].(type) {
- case sql.RawBytes:
- dest[i] = (*[1 << 30]byte)(p)[0:n]
default:
slice := make([]byte, n)
copy(slice[:], (*[1 << 30]byte)(p)[0:n])