@@ -148,7 +148,9 @@ fn left_outer_joins() {
148148 ( sean, Some ( seans_second_post) ) ,
149149 ( tess, None ) ,
150150 ] ;
151- let source = users:: table. left_outer_join ( posts:: table) ;
151+ let source = users:: table
152+ . left_outer_join ( posts:: table)
153+ . order_by ( ( users:: id. asc ( ) , posts:: id. asc ( ) ) ) ;
152154 let actual_data: Vec < _ > = source. load ( & connection) . unwrap ( ) ;
153155
154156 assert_eq ! ( expected_data, actual_data) ;
@@ -174,7 +176,8 @@ fn columns_on_right_side_of_left_outer_joins_are_nullable() {
174176 ] ;
175177 let source = users:: table
176178 . left_outer_join ( posts:: table)
177- . select ( ( users:: name, posts:: title. nullable ( ) ) ) ;
179+ . select ( ( users:: name, posts:: title. nullable ( ) ) )
180+ . order_by ( ( users:: id. asc ( ) , posts:: title. asc ( ) ) ) ;
178181 let actual_data: Vec < _ > = source. load ( & connection) . unwrap ( ) ;
179182
180183 assert_eq ! ( expected_data, actual_data) ;
@@ -224,7 +227,8 @@ fn select_multiple_from_right_side_returns_optional_tuple_when_nullable_is_calle
224227
225228 let source = users:: table
226229 . left_outer_join ( posts:: table)
227- . select ( ( posts:: title, posts:: body) . nullable ( ) ) ;
230+ . select ( ( posts:: title, posts:: body) . nullable ( ) )
231+ . order_by ( ( users:: id. asc ( ) , posts:: id. asc ( ) ) ) ;
228232 let actual_data: Vec < _ > = source. load ( & connection) . unwrap ( ) ;
229233
230234 assert_eq ! ( expected_data, actual_data) ;
@@ -256,7 +260,8 @@ fn select_complex_from_left_join() {
256260
257261 let source = users:: table
258262 . left_outer_join ( posts:: table)
259- . select ( ( users:: all_columns, ( posts:: title, posts:: body) . nullable ( ) ) ) ;
263+ . select ( ( users:: all_columns, ( posts:: title, posts:: body) . nullable ( ) ) )
264+ . order_by ( ( users:: id. asc ( ) , posts:: id. asc ( ) ) ) ;
260265 let actual_data: Vec < _ > = source. load ( & connection) . unwrap ( ) ;
261266
262267 assert_eq ! ( expected_data, actual_data) ;
@@ -288,7 +293,8 @@ fn select_right_side_with_nullable_column_first() {
288293
289294 let source = users:: table
290295 . left_outer_join ( posts:: table)
291- . select ( ( users:: all_columns, ( posts:: body, posts:: title) . nullable ( ) ) ) ;
296+ . select ( ( users:: all_columns, ( posts:: body, posts:: title) . nullable ( ) ) )
297+ . order_by ( ( users:: id. asc ( ) , posts:: id. asc ( ) ) ) ;
292298 let actual_data: Vec < _ > = source. load ( & connection) . unwrap ( ) ;
293299
294300 assert_eq ! ( expected_data, actual_data) ;
0 commit comments