You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2012/08/24 02:04:24 UTC
svn commit: r1376796 -
/incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php
Author: yusaku
Date: Fri Aug 24 00:04:23 2012
New Revision: 1376796
URL: http://svn.apache.org/viewvc?rev=1376796&view=rev
Log:
AMBARI-673. Going back to step 3 from step 5 in UI breaks DB - fixed an undefined constant issue with the original patch (Contributed by yusaku)
Modified:
incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php
Modified: incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php?rev=1376796&r1=1376795&r2=1376796&view=diff
==============================================================================
--- incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php (original)
+++ incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php Fri Aug 24 00:04:23 2012
@@ -3348,7 +3348,7 @@ public function cleanAllHostRoles($clust
LockAcquire();
$response = array ("result" => 0, "error" => "");
- $query = "DELETE from " . HostRoles. " WHERE cluster_name = "
+ $query = "DELETE from HostRoles WHERE cluster_name = "
. $this->dbHandle->quote($clusterName);
$this->logger->log_trace("Running query: $query");
$pdoStmt = $this->dbHandle->query($query);