File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class QueryDataTable extends DataTableAbstract
4949 */
5050 protected bool $ keepSelectBindings = false ;
5151
52- /**
52+ /**
5353 * Flag to ignore the selects in count query.
5454 *
5555 * @var bool
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ public function test_complex_query_use_select_in_count()
4242 'last_post_id ' => DB ::table ('posts ' )
4343 ->whereColumn ('posts.user_id ' , 'users.id ' )
4444 ->orderBy ('created_at ' )
45- ->select ('id ' )
45+ ->select ('id ' ),
4646 ])
4747 ->orderBy (DB ::table ('posts ' )->whereColumn ('posts.user_id ' , 'users.id ' )->orderBy ('created_at ' )->select ('created_at ' )
48- )
48+ )
4949 );
5050
5151 $ this ->assertQueryHasNoSelect (false , $ dataTable ->prepareCountQuery ());
@@ -62,10 +62,10 @@ public function test_complex_query_can_ignore_select_in_count()
6262 'last_post_id ' => DB ::table ('posts ' )
6363 ->whereColumn ('posts.user_id ' , 'users.id ' )
6464 ->orderBy ('created_at ' )
65- ->select ('id ' )
65+ ->select ('id ' ),
6666 ])
6767 ->orderBy (DB ::table ('posts ' )->whereColumn ('posts.user_id ' , 'users.id ' )->orderBy ('created_at ' )->select ('created_at ' )
68- )
68+ )
6969 )->ignoreSelectsInCountQuery ();
7070
7171 $ this ->assertQueryHasNoSelect (true , $ dataTable ->prepareCountQuery ());
You can’t perform that action at this time.
0 commit comments