mirror of
https://github.com/FliegendeWurst/ripgrep-all.git
synced 2024-11-09 22:40:37 +00:00
Fix SqlAdapter::format_blob (rusqlite API change)
https://docs.rs/rusqlite/0.20.0/rusqlite/types/enum.ValueRef.html#method.as_str
This commit is contained in:
parent
611fba3755
commit
9d6cea3d40
@ -46,7 +46,7 @@ fn format_blob(b: ValueRef) -> String {
|
|||||||
Null => "NULL".to_owned(),
|
Null => "NULL".to_owned(),
|
||||||
Integer(i) => format!("{}", i),
|
Integer(i) => format!("{}", i),
|
||||||
Real(i) => format!("{}", i),
|
Real(i) => format!("{}", i),
|
||||||
Text(i) => format!("'{}'", i.replace("'", "''")),
|
Text(i) => format!("'{}'", String::from_utf8_lossy(i).replace("'", "''")),
|
||||||
Blob(b) => format!(
|
Blob(b) => format!(
|
||||||
"[blob {}B]",
|
"[blob {}B]",
|
||||||
size_format::SizeFormatterSI::new(
|
size_format::SizeFormatterSI::new(
|
||||||
|
Loading…
Reference in New Issue
Block a user