Fix session history (#620)
This commit is contained in:
parent
25a2732817
commit
5b22f29329
1 changed files with 2 additions and 2 deletions
|
@ -206,12 +206,12 @@ impl Cmd {
|
||||||
db.query_history(&query).await?
|
db.query_history(&query).await?
|
||||||
}
|
}
|
||||||
(Some(session), None) => {
|
(Some(session), None) => {
|
||||||
let query = format!("select * from history where session = {};", session);
|
let query = format!("select * from history where session = '{}';", session);
|
||||||
db.query_history(&query).await?
|
db.query_history(&query).await?
|
||||||
}
|
}
|
||||||
(Some(session), Some(cwd)) => {
|
(Some(session), Some(cwd)) => {
|
||||||
let query = format!(
|
let query = format!(
|
||||||
"select * from history where cwd = '{}' and session = {};",
|
"select * from history where cwd = '{}' and session = '{}';",
|
||||||
cwd, session
|
cwd, session
|
||||||
);
|
);
|
||||||
db.query_history(&query).await?
|
db.query_history(&query).await?
|
||||||
|
|
Loading…
Reference in a new issue