Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Mysqli/MysqliDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;" );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$this->connection->query("SET @@SESSION.sql_big_selects = 1;" );
$this->connection->query('SET @@SESSION.sql_big_selects = 1;');

Code style fix.


// If auto-select is enabled select the given database.
if ($this->options['select'] && !empty($this->options['database']))
{
Expand Down