Do not assume sqlite3_column_text is valid UTF-8

Fix impact on features
This commit is contained in:
gwenn
2019-07-24 20:46:53 +02:00
parent f0ae7b6e9b
commit 701389605d
4 changed files with 11 additions and 13 deletions

View File

@@ -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);
}
_ => {