/ Published in: PHP
Patch for sfPropelMigrationsLightPlugin 1.1.2 installed on Symfony 1.2. In sfMigrator.class.php, add "$con->setAttribute(PDO::MYSQLATTRUSEBUFFEREDQUERY, true);" to the following functions:
Expand |
Embed | Plain Text
{ $con = Propel::getConnection(); $con->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true); return $con instanceof PropelPDO ? $con->exec($sql) : $con->executeUpdate($sql); } { $con = Propel::getConnection(); $con->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true); if ($con instanceof PropelPDO) { $stmt = $con->prepare($sql); $stmt->execute(); return $stmt; } else { return $con->executeQuery($sql, $fetchmode); } }
You need to login to post a comment.
