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 committed Jun 28, 2024
1 parent d3c6850 commit 24d43fc
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 @@ -580,6 +580,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 24d43fc

Please sign in to comment.