Authored by ziy

FIX 替换BUG问题

... ... @@ -272,7 +272,7 @@ class Connection extends Root
throw new DebugException('替换参数值不能为数组.');
}
if ($this->checkDisableCommands($value) == false) {
throw new DebugException('替换参数包括了禁用sql方法.');
//throw new DebugException('替换参数包括了禁用sql方法.');
}
$_replaceMap["#" . $key . "#"] = $value;
}
... ... @@ -288,7 +288,7 @@ class Connection extends Root
*/
protected function _statement($sql, $parameterMap, $replaceMap)
{
//$sql = $this->makeReplaceMapToSql($sql, $replaceMap);
$sql = $this->makeReplaceMapToSql($sql, $replaceMap);
$this->_PDOConn = $conn = $this->connect();
$this->_PDOStatement = $stmt = $conn->prepare($sql);
$this->bindValues($parameterMap, $stmt);
... ...