Skip to content

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Minz/ModelPdo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function __construct($currentUser = null, $currentPrefix = null, $current
7272
$driver_options[PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES utf8mb4';
7373
$this->prefix = $db['prefix'] . $currentUser . '_';
7474
$this->bd = new MinzPDOMySql($string, $db['user'], $db['password'], $driver_options);
75+
$this->bd->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, false);
7576
break;
7677
case 'sqlite':
7778
$string = 'sqlite:' . join_path(DATA_PATH, 'users', $currentUser, 'db.sqlite');

0 commit comments

Comments
 (0)