Commit 95ef912 1 parent 1634a65 commit 95ef912 Copy full SHA for 95ef912
File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -552,10 +552,9 @@ impl PreparedStatement<Channel> {
552
552
& self ,
553
553
put_result : & PutResult ,
554
554
) -> Result < Option < Bytes > , ArrowError > {
555
- let any = Any :: decode ( & * put_result. app_metadata ) . map_err ( decode_error_to_arrow_error) ?;
556
- Ok ( any
557
- . unpack :: < DoPutPreparedStatementResult > ( ) ?
558
- . and_then ( |result| result. prepared_statement_handle ) )
555
+ let result: DoPutPreparedStatementResult =
556
+ Message :: decode ( & * put_result. app_metadata ) . map_err ( decode_error_to_arrow_error) ?;
557
+ Ok ( result. prepared_statement_handle )
559
558
}
560
559
561
560
/// Close the prepared statement, so that this PreparedStatement can not used
Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ where
718
718
. do_put_prepared_statement_query ( command, request)
719
719
. await ?;
720
720
let output = futures:: stream:: iter ( vec ! [ Ok ( PutResult {
721
- app_metadata: result. as_any ( ) . encode_to_vec( ) . into( ) ,
721
+ app_metadata: result. encode_to_vec( ) . into( ) ,
722
722
} ) ] ) ;
723
723
Ok ( Response :: new ( Box :: pin ( output) ) )
724
724
}
You can’t perform that action at this time.
0 commit comments