diff --git a/src/Mysqli/MysqliDriver.php b/src/Mysqli/MysqliDriver.php index 555a6da6c..55be15be4 100644 --- a/src/Mysqli/MysqliDriver.php +++ b/src/Mysqli/MysqliDriver.php @@ -292,6 +292,9 @@ public function connect() // And read the real sql mode to mitigate changes in mysql > 5.7.+ $this->options['sqlModes'] = explode(',', $this->setQuery('SELECT @@SESSION.sql_mode;')->loadResult()); + // Turn 'big selects' on to ensure certain selects work on platforms that try to prevent these... + $this->connection->query("SET @@SESSION.sql_big_selects = 1;" ); + // If auto-select is enabled select the given database. if ($this->options['select'] && !empty($this->options['database'])) {