File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " sqlx-pg-uint-macros"
3- version = " 0.7 .0"
3+ version = " 0.8 .0"
44edition = " 2021"
55license = " MIT"
66authors = [" bitfl0wer" ]
@@ -11,5 +11,5 @@ rust-version = "1.61.0"
1111proc-macro = true
1212
1313[dependencies ]
14- quote = " 1.0.37 "
15- syn = " 2.0.79 "
14+ quote = " 1.0.38 "
15+ syn = " 2.0.98 "
Original file line number Diff line number Diff line change @@ -155,15 +155,16 @@ pub fn uint_wrapper_derive(input: TokenStream) -> TokenStream {
155155 & self ,
156156 buf: & mut <sqlx:: Postgres as sqlx:: Database >:: ArgumentBuffer <' q>,
157157 ) -> Result <sqlx:: encode:: IsNull , sqlx:: error:: BoxDynError > {
158- self . inner. encode_by_ref ( buf)
158+ < BigDecimal as sqlx :: Encode <sqlx :: Postgres >> :: encode_by_ref ( & self . inner, buf)
159159 }
160160 }
161161
162162 impl <' r> sqlx:: Decode <' r, sqlx:: Postgres > for #name {
163163 fn decode(
164164 value: <sqlx:: Postgres as sqlx:: Database >:: ValueRef <' r>,
165165 ) -> Result <Self , sqlx:: error:: BoxDynError > {
166- let big_decimal = BigDecimal :: decode( value) ?;
166+ let big_decimal = <BigDecimal as sqlx:: Decode <sqlx:: Postgres >>:: decode( value)
167+ ?;
167168 Ok ( #name:: try_from( big_decimal) ?)
168169 }
169170 }
Original file line number Diff line number Diff line change 11[package ]
22name = " sqlx-pg-uint"
3- version = " 0.8.1 "
3+ version = " 0.9.0 "
44edition = " 2021"
55license = " MIT"
66authors = [" bitfl0wer" ]
You can’t perform that action at this time.
0 commit comments