aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/history.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/history.rs')
-rw-r--r--src/command/history.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/history.rs b/src/command/history.rs
index a74b210b..37b4b9dd 100644
--- a/src/command/history.rs
+++ b/src/command/history.rs
@@ -174,7 +174,7 @@ impl Cmd {
let history = match (session, cwd) {
(None, None) => db.list(None, false).await?,
(None, Some(cwd)) => {
- let query = format!("select * from history where cwd = {};", cwd);
+ let query = format!("select * from history where cwd = '{}';", cwd);
db.query_history(&query).await?
}
(Some(session), None) => {
@@ -183,7 +183,7 @@ impl Cmd {
}
(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?