Skip to content

Commit

Permalink
Add i16 support for Any Type.
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanYuan committed Jun 6, 2022
1 parent 20d61f4 commit 01e5b49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sqlx-core/src/any/types.rs
Expand Up @@ -5,6 +5,7 @@
//! | Rust type | SQL type(s) |
//! |---------------------------------------|------------------------------------------------------|
//! | `bool` | BOOLEAN |
//! | `i16` | SMALLINT |
//! | `i32` | INT |
//! | `i64` | BIGINT |
//! | `f32` | FLOAT |
Expand All @@ -21,6 +22,7 @@

impl_any_type!(bool);

impl_any_type!(i16);
impl_any_type!(i32);
impl_any_type!(i64);

Expand All @@ -34,6 +36,7 @@ impl_any_type!(String);

impl_any_encode!(bool);

impl_any_encode!(i16);
impl_any_encode!(i32);
impl_any_encode!(i64);

Expand All @@ -47,6 +50,7 @@ impl_any_encode!(String);

impl_any_decode!(bool);

impl_any_decode!(i16);
impl_any_decode!(i32);
impl_any_decode!(i64);

Expand Down

0 comments on commit 01e5b49

Please sign in to comment.