Skip to content

Commit

Permalink
Add 'ColumnType::Timestamp' support for the prepared statements
Browse files Browse the repository at this point in the history
  • Loading branch information
vponomaryov authored and pkolaczk committed Jul 5, 2024
1 parent 82f4843 commit 1e4db83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,9 @@ mod bind {
}
(Value::Integer(v), ColumnType::Int) => convert_int(*v, ColumnType::Int, CqlValue::Int),
(Value::Integer(v), ColumnType::BigInt) => Ok(CqlValue::BigInt(*v)),
(Value::Integer(v), ColumnType::Timestamp) => {
Ok(CqlValue::Timestamp(scylla::frame::value::CqlTimestamp(*v)))
}

(Value::Float(v), ColumnType::Float) => Ok(CqlValue::Float(*v as f32)),
(Value::Float(v), ColumnType::Double) => Ok(CqlValue::Double(*v)),
Expand Down

0 comments on commit 1e4db83

Please sign in to comment.