Skip to content
Browse files

Fix text formatting

  • Loading branch information...
1 parent 929080d commit aeeb66d7c8fd1a35a119e3b6968485fdf81fb376 @ddalmais ddalmais committed Mar 16, 2012
Showing with 5 additions and 3 deletions.
  1. +2 −1 runtime/lib/adapter/DBAdapter.php
  2. +3 −2 runtime/lib/adapter/DBMySQL.php
View
3 runtime/lib/adapter/DBAdapter.php
@@ -589,7 +589,8 @@ public function bindValue(PDOStatement $stmt, $parameter, $value, ColumnMap $cMa
* @throws PropelException if explain plan is not implemented for adapter
* @return PDOStatement A PDO statement executed using the connection, ready to be fetched
*/
- public function doExplainPlan(PropelPDO $con, $query) {
+ public function doExplainPlan(PropelPDO $con, $query)
+ {
throw new PropelException("Explain plan is not implemented for this adapter");
}
}
View
5 runtime/lib/adapter/DBMySQL.php
@@ -259,7 +259,8 @@ public function prepareParams($params)
* @throws PropelException
* @return PDOStatement A PDO statement executed using the connection, ready to be fetched
*/
- public function doExplainPlan(PropelPDO $con, $query) {
+ public function doExplainPlan(PropelPDO $con, $query)
+ {
if ($query instanceof ModelCriteria) {
$params = array();
$dbMap = Propel::getDatabaseMap($query->getDbName());
@@ -272,7 +273,7 @@ public function doExplainPlan(PropelPDO $con, $query) {
$stmt = $con->prepare($sql);
if ($query instanceof ModelCriteria) {
- $this->bindValues($stmt, $params, $dbMap);
+ $this->bindValues($stmt, $params, $dbMap);
}
$stmt->execute();

0 comments on commit aeeb66d

Please sign in to comment.
Something went wrong with that request. Please try again.