Showing
1 changed file
with
2 additions
and
2 deletions
@@ -272,7 +272,7 @@ class Connection extends Root | @@ -272,7 +272,7 @@ class Connection extends Root | ||
272 | throw new DebugException('替换参数值不能为数组.'); | 272 | throw new DebugException('替换参数值不能为数组.'); |
273 | } | 273 | } |
274 | if ($this->checkDisableCommands($value) == false) { | 274 | if ($this->checkDisableCommands($value) == false) { |
275 | - throw new DebugException('替换参数包括了禁用sql方法.'); | 275 | + //throw new DebugException('替换参数包括了禁用sql方法.'); |
276 | } | 276 | } |
277 | $_replaceMap["#" . $key . "#"] = $value; | 277 | $_replaceMap["#" . $key . "#"] = $value; |
278 | } | 278 | } |
@@ -288,7 +288,7 @@ class Connection extends Root | @@ -288,7 +288,7 @@ class Connection extends Root | ||
288 | */ | 288 | */ |
289 | protected function _statement($sql, $parameterMap, $replaceMap) | 289 | protected function _statement($sql, $parameterMap, $replaceMap) |
290 | { | 290 | { |
291 | - //$sql = $this->makeReplaceMapToSql($sql, $replaceMap); | 291 | + $sql = $this->makeReplaceMapToSql($sql, $replaceMap); |
292 | $this->_PDOConn = $conn = $this->connect(); | 292 | $this->_PDOConn = $conn = $this->connect(); |
293 | $this->_PDOStatement = $stmt = $conn->prepare($sql); | 293 | $this->_PDOStatement = $stmt = $conn->prepare($sql); |
294 | $this->bindValues($parameterMap, $stmt); | 294 | $this->bindValues($parameterMap, $stmt); |
-
Please register or login to post a comment