Skip to content

Commit

Permalink
Update custom_types.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
dullbananas authored Jun 10, 2024
1 parent 0dd817c commit d513811
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/custom_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ async fn custom_types_round_trip() {
.unwrap();

// Try encoding arrays to test type metadata lookup
let selected_data = (vec![MyEnum::Foo, MyEnum::Bar], vec![vec![0i32]]);//, vec![vec![MyEnum::Foo]]);
let selected_data = (/*vec![MyEnum::Foo, MyEnum::Bar],*/ vec![vec![0i32]]);//, vec![vec![MyEnum::Foo]]);
let selected = select(
//selected_data.clone().into_sql::<(Array<MyType>, Array<Integer>, Array<Array<MyType>>)>(),
(
selected_data.0.clone().into_sql::<(Array<MyType>)>(),
//selected_data.0.clone().into_sql::<(Array<MyType>)>(),
selected_data.1.clone().into_sql::<(Array<Array<Integer>>)>(),
//selected_data.2.clone().into_sql::<(Array<Array<MyType>>)>(),
)
)
.get_result::<(Vec<MyEnum>, Vec<Vec<i32>>/*, Vec<Vec<MyEnum>>*/)>(connection)
.get_result::<(/*Vec<MyEnum>,*/ Vec<Vec<i32>>,/* Vec<Vec<MyEnum>>*/)>(connection)
.await
.unwrap();
assert_eq!(selected_data, selected);
Expand Down

0 comments on commit d513811

Please sign in to comment.