Commit b9a61d0a authored by gwenn's avatar gwenn

Set cap on raw bytes.

parent 172a3cc9
......@@ -1019,7 +1019,7 @@ func (s *Stmt) ScanRawBytes(index int) (value []byte, isNull bool) {
isNull = true
} else {
n := C.sqlite3_column_bytes(s.stmt, C.int(index))
value = (*[1 << 30]byte)(unsafe.Pointer(p))[:n]
value = (*[1 << 30]byte)(unsafe.Pointer(p))[:n:n]
}
return
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment