diff options
| author | Conrad Ludgate <conrad.ludgate@truelayer.com> | 2022-04-26 18:03:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-26 18:03:13 +0100 |
| commit | d8ef5dd93aff0490258d38885d0b1077163acad6 (patch) | |
| tree | fceaf432a3a5a9dc59948ef442e3146c82049804 /atuin-client/src/database.rs | |
| parent | fix import auto for bash (#352) (diff) | |
| download | atuin-d8ef5dd93aff0490258d38885d0b1077163acad6.zip | |
fix db range query (#351)
Diffstat (limited to 'atuin-client/src/database.rs')
| -rw-r--r-- | atuin-client/src/database.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/atuin-client/src/database.rs b/atuin-client/src/database.rs index 14f01cd3..cfd63a3a 100644 --- a/atuin-client/src/database.rs +++ b/atuin-client/src/database.rs @@ -260,8 +260,8 @@ impl Database for Sqlite { let res = sqlx::query( "select * from history where timestamp >= ?1 and timestamp <= ?2 order by timestamp asc", ) - .bind(from) - .bind(to) + .bind(from.timestamp_nanos()) + .bind(to.timestamp_nanos()) .map(Self::query_history) .fetch_all(&self.pool) .await?; |
