Skip to content

Commit

Permalink
examples: update UDT parsing example to be in line with docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sylwiaszunejko committed Oct 19, 2023
1 parent f6eac92 commit e77713f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/user-defined-type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ async fn main() -> Result<()> {
// And read like any normal value
if let Some(rows) = session.query("SELECT my FROM ks.udt_tab", &[]).await?.rows {
for row in rows.into_typed::<(MyType,)>() {
let (my_val,) = row?;
println!("{:?}", my_val)
let (my_type_value,): (MyType,) = row?;
println!("{:?}", my_type_value)
}
}

Expand Down

0 comments on commit e77713f

Please sign in to comment.