Skip to content

Commit

Permalink
fix small test breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
samansmink committed Oct 4, 2024
1 parent 3f4297f commit a482097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/duckdb/src/types/chrono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ mod test {
fn test_naive_date_time_param() -> Result<()> {
let db = checked_memory_handle()?;
let result: Result<bool> = db.query_row(
"SELECT 1 WHERE ? BETWEEN (now()::timestamp - INTERVAL '1 minute') AND (now()::timestamp + INTERVAL '1 minute')",
"SELECT 1 WHERE ?::TIMESTAMP BETWEEN (now()::timestamp - INTERVAL '1 minute') AND (now()::timestamp + INTERVAL '1 minute')",
[Utc::now().naive_utc()],
|r| r.get(0),
);
Expand All @@ -339,7 +339,7 @@ mod test {
let db = checked_memory_handle()?;
// TODO(wangfenjin): why need 2 params?
let result: Result<bool> = db.query_row(
"SELECT 1 WHERE ? BETWEEN (now()::timestamp - INTERVAL '1 minute') AND (now()::timestamp + INTERVAL '1 minute')",
"SELECT 1 WHERE ?::TIMESTAMP BETWEEN (now()::timestamp - INTERVAL '1 minute') AND (now()::timestamp + INTERVAL '1 minute')",
[Utc::now()],
|r| r.get(0),
);
Expand Down

0 comments on commit a482097

Please sign in to comment.