Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions sqlite3_opt_preupdate_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ func (d *SQLitePreUpdateData) row(dest []any, new bool) error {
blobptr := C.sqlite3_value_blob(val)
src = C.GoBytes(blobptr, len)
case C.SQLITE_TEXT:
len := C.sqlite3_value_bytes(val)
cstrptr := unsafe.Pointer(C.sqlite3_value_text(val))
src = C.GoBytes(cstrptr, len)
src = C.GoString((*C.char)(cstrptr))
case C.SQLITE_NULL:
src = nil
}
Expand Down
Loading