@@ -32,6 +32,7 @@ import prettyNumber from 'lib/prettyNumber';
32
32
import queryFromFilters from 'lib/queryFromFilters' ;
33
33
import React from 'react' ;
34
34
import RemoveColumnDialog from 'dashboard/Data/Browser/RemoveColumnDialog.react' ;
35
+ import semver from 'semver/preload.js' ;
35
36
import SidebarAction from 'components/Sidebar/SidebarAction' ;
36
37
import stringCompare from 'lib/stringCompare' ;
37
38
import styles from 'dashboard/Data/Browser/Browser.scss' ;
@@ -838,7 +839,8 @@ class Browser extends DashboardView {
838
839
}
839
840
840
841
query . limit ( MAX_ROWS_FETCHED ) ;
841
- this . excludeFields ( query , source ) ;
842
+ semver . gt ( this . context . currentApp . serverInfo . parseServerVersion , '3.6.0' ) &&
843
+ this . excludeFields ( query , source ) ;
842
844
843
845
let promise = query . find ( { useMasterKey : true } ) ;
844
846
let isUnique = false ;
@@ -969,7 +971,8 @@ class Browser extends DashboardView {
969
971
}
970
972
}
971
973
query . limit ( MAX_ROWS_FETCHED ) ;
972
- this . excludeFields ( query , source ) ;
974
+ semver . gt ( this . context . currentApp . serverInfo . parseServerVersion , '3.6.0' ) &&
975
+ this . excludeFields ( query , source ) ;
973
976
974
977
query . find ( { useMasterKey : true } ) . then ( ( nextPage ) => {
975
978
if ( className === this . props . params . className ) {
0 commit comments