mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-24 21:52:41 +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