diff --git a/rasql-core/src/rust/type_gen.rs b/rasql-core/src/rust/type_gen.rs index 4d50fe2..9942c7b 100644 --- a/rasql-core/src/rust/type_gen.rs +++ b/rasql-core/src/rust/type_gen.rs @@ -88,7 +88,9 @@ impl TypeGenerator for TokioPostgresGenerator { syn::Type::Verbatim(quote::quote! {rust_decimal::Decimal}) } - sqlparser::ast::DataType::Int2(_) => syn::Type::Verbatim(quote::quote! {i16}), + sqlparser::ast::DataType::Int2(_) | sqlparser::ast::DataType::SmallInt(_) => { + syn::Type::Verbatim(quote::quote! {i16}) + } sqlparser::ast::DataType::UnsignedInt2(_) => syn::Type::Verbatim(quote::quote! {u16}), sqlparser::ast::DataType::Int16 => todo!(), sqlparser::ast::DataType::Int128 => todo!(),