mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 20:52:19 +08:00
Do not assume sqlite3_column_text
is valid UTF-8
Fix impact on features
This commit is contained in:
@@ -86,7 +86,7 @@ impl Sql {
|
||||
self.push_real(r);
|
||||
}
|
||||
ValueRef::Text(s) => {
|
||||
let s = std::str::from_utf8(s).expect("invalid UTF-8");
|
||||
let s = std::str::from_utf8(s)?;
|
||||
self.push_string_literal(s);
|
||||
}
|
||||
_ => {
|
||||
|
Reference in New Issue
Block a user