diff --git a/ext/stats/percentile.go b/ext/stats/percentile.go index a4c3199..6137e47 100644 --- a/ext/stats/percentile.go +++ b/ext/stats/percentile.go @@ -32,7 +32,7 @@ func (q *percentile) Step(ctx sqlite3.Context, arg ...sqlite3.Value) { q.nums = append(q.nums, a.Float()) } if q.kind != median { - q.arg1 = arg[1].Blob(q.arg1[:0]) + q.arg1 = append(q.arg1[:0], arg[1].RawText()...) } } diff --git a/func_win_test.go b/func_win_test.go index 4117748..cfaff3d 100644 --- a/func_win_test.go +++ b/func_win_test.go @@ -78,7 +78,7 @@ func (f *countASCII) isASCII(arg sqlite3.Value) bool { if arg.Type() != sqlite3.TEXT { return false } - for _, c := range arg.RawBlob() { + for _, c := range arg.RawText() { if c > unicode.MaxASCII { return false }