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?
|
||||
}
|
||||
(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?
|
||||
}
|
||||
(Some(session), Some(cwd)) => {
|
||||
let query = format!(
|
||||
"select * from history where cwd = '{}' and session = {};",
|
||||
"select * from history where cwd = '{}' and session = '{}';",
|
||||
cwd, session
|
||||
);
|
||||
db.query_history(&query).await?
|
||||
|
|
Loading…
Reference in a new issue