diff --git a/Source/Connection/Functions/Function.swift b/Source/Connection/Functions/Function.swift index c65f07f..95d1927 100644 --- a/Source/Connection/Functions/Function.swift +++ b/Source/Connection/Functions/Function.swift @@ -360,7 +360,7 @@ extension Connection { let text = bindingDateFormatter.string(from: date) sqlite3_result_text64(context, text, UInt64(text.utf8.count), SQLITE_TRANSIENT, UInt8(SQLITE_UTF8)) - case .data(var data): + case .data(let data): data.withUnsafeBytes { sqlite3_result_blob64(context, $0.bindMemory(to: UInt8.self).baseAddress, UInt64(data.count), SQLITE_TRANSIENT) }