File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -357,9 +357,13 @@ protected function saveQuery($query)
357
357
$ this ->query = $ query ;
358
358
$ this ->query_type = $ query instanceof \Illuminate \Database \Query \Builder ? 'fluent ' : 'eloquent ' ;
359
359
if ($ this ->dataFullSupport ) {
360
- $ this ->columns = array_map (function ($ column ) {
361
- return trim (DB ::connection ()->getPdo ()->quote ($ column ['data ' ]), "' " );
362
- }, $ this ->input ['columns ' ]);
360
+ if ($ this ->query_type == 'eloquent ' ) {
361
+ $ this ->columns = array_map (function ($ column ) {
362
+ return trim (DB ::connection ()->getPdo ()->quote ($ column ['data ' ]), "' " );
363
+ }, $ this ->input ['columns ' ]);
364
+ } else {
365
+ $ this ->columns = ($ this ->query ->columns ?: array ());
366
+ }
363
367
} else {
364
368
$ this ->columns = $ this ->query_type == 'eloquent ' ? ($ this ->query ->getQuery ()->columns ?: array ()) : ($ this ->query ->columns ?: array ());
365
369
}
You can’t perform that action at this time.
0 commit comments