update sql_datatype_to_rust_type
This commit is contained in:
parent
258eabff54
commit
0e6f69e23b
1 changed files with 3 additions and 1 deletions
|
|
@ -88,7 +88,9 @@ impl TypeGenerator<rasql_traits::PostgresTypesTraits> 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!(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue